You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HelseId OAuth2 flows (Authorization Code and Client Credentials) using the spring boot. It includes examples of securing API calls with oAuth2 and DPoP.
5
+
6
+
### 1. Authorization Code Flow
7
+
1. Navigate to the `authorization-code` project and start the application:
8
+
```bash
9
+
cd authorization-code
10
+
mvn spring-boot:run
11
+
```
12
+
2. Test the Authorization Code Flow:
13
+
14
+
Access the application at http://localhost:8089.
15
+
16
+
View the ID Token details at http://localhost:8089/api/token-info.
17
+
18
+
19
+
### 2. Client Credentials with API Security Validation
20
+
1. Navigate to the `authorization-code` project and start the application
21
+
```bash
22
+
cd demo-api
23
+
mvn spring-boot:run
24
+
```
25
+
26
+
2. Navigate to the `client-credentials` project and start the **client-credentials** application:
27
+
```bash
28
+
cd client-credentials
29
+
mvn spring-boot:run
30
+
```
31
+
3. The `ClientCredentialsExample` class in `client-credentials` will call demo-api with OAuth tokens and DPoP tokens.
0 commit comments