Skip to content
Branch: master
Find file History
Latest commit 33dc92e Aug 27, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src/main Merge pull request #1 from moritzgloeckl/various-bugfixes Aug 27, 2019
.gitignore Initial commit Aug 5, 2019
README.md
pom.xml Update Spring to a newer version to be able to use the fix for spring… Aug 27, 2019
token-exchange-server-samples.paw fix double url encoding issue Aug 23, 2019
web.config Initial commit Aug 5, 2019

README.md

Token Exchange Server Sample

A server application that demonstrates Tapkey's Token Exchange grant type.

Endpoints

  • GET /public-key: Returns the public key of the key pair in use.
  • POST /user: Creates a new local use that can be used for HTTP Basic Authentication in the /user/tapkey-token operation.
  • GET /user/tapkey-token: Returns a JWT token that can be exchanged for a Tapkey access token. Requires Basic Authentication.
  • GET /user/grants?grantIds=1,2,3,4: Returns application-specific grant information for the specified grant IDs.

Setup

  • Clone this repository
  • Change into /token-exchange-server-sample/
  • Copy /src/main/resources/application.properties.default to /src/main/resources/application.properties and fill in all missing configuration values.
  • Run mvn clean install
  • Run mvn spring-boot:run
  • The application is now served from http://localhost:8080
You can’t perform that action at this time.