MCPcopy Index your code
hub / github.com/dsyer/sparklr-boot

github.com/dsyer/sparklr-boot @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
129 symbols 284 edges 10 files 15 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

This project is a minimal but functional OAuth2 Authorization Server (token issuer) and Resource Server (protected API). (You could split the two roles across two applications if you preferred.) It uses Spring Boot to provide an embedded servlet container and for defaulting a load of configuration, so you should be up and running with it very quickly. There are integration tests proving that it works and also showing you how to access it with the Spring RestTemplate API.

Building

You need Java (1.7 or better) and Maven (3.0.5 or better):

$ mvn package
$ java -jar target/*.jar
...
<app starts and listens on port 8080>

Here are some curl commands to use to get started:

$ curl -H "Accept: application/json" my-client-with-secret:secret@localhost:8080/oauth/token -d grant_type=client_credentials
{... "access_token": "b561ff06-4259-466e-92d8-781db1a51901", ...}
$ TOKEN=b561ff06-4259-466e-92d8-781db1a5190
$ curl -H "Authorization: Bearer $TOKEN" localhost:8080/
Hello World

Core symbols most depended-on inside this repo

main
called by 0
src/main/java/demo/Application.java
home
called by 0
src/main/java/demo/Application.java
configure
called by 0
src/main/java/demo/Application.java
configure
called by 0
src/main/java/demo/Application.java

Shape

Method 102
Class 27

Languages

Java100%

Modules by API surface

src/test/java/demo/ServerRunning.java28 symbols
src/test/java/demo/ResourceOwnerPasswordProviderTests.java28 symbols
src/test/java/demo/AuthorizationCodeProviderTests.java28 symbols
src/test/java/demo/ClientCredentialsProviderTests.java12 symbols
src/test/java/demo/AbstractIntegrationTests.java8 symbols
src/test/java/demo/RefreshTokenSupportTests.java7 symbols
src/main/java/demo/Application.java7 symbols
src/test/java/demo/ProtectedResourceTests.java5 symbols
src/test/java/demo/ImplicitProviderTests.java4 symbols
src/test/java/demo/ApplicationTests.java2 symbols

For agents

$ claude mcp add sparklr-boot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact