Returns "Hello World"
.
Returns "Secured"
if authenticated.
Returns the OAuth2 token:
"ID Token: <token>"
for OIDC users."Access Token: <token>"
for others.
Logs out the user and returns "Logged out successfully"
.
- Clone the repo.
- Run with
mvn spring-boot:run
or with your IDE. - Access endpoints at
http://localhost:8080
.
/secured
,/token
, and/logout
require OAuth2 authentication.