PKCE [RFC 7636] (Proof Key for Code Exchange) , PAR [RFC 9126] (Pushed Authorization Requests), and DPoP [RFC 9449]
HelseId OAuth2 flows (Authorization Code and Client Credentials) using the spring boot. It includes examples of securing API calls with oAuth2 and DPoP.
-
Navigate to the
authorization-codeproject and start the application:cd authorization-code mvn spring-boot:run -
Test the Authorization Code Flow:
Access the application at http://localhost:8089.
View the ID Token details at http://localhost:8089/api/token-info.
-
Navigate to the
authorization-codeproject and start the applicationcd demo-api mvn spring-boot:run -
Navigate to the
client-credentialsproject and start the client-credentials application:cd client-credentials mvn spring-boot:run -
The
ClientCredentialsExampleclass inclient-credentialswill call demo-api with OAuth tokens and DPoP tokens.