Skip to content

Instantly share code, notes, and snippets.

@abadongutierrez
Created February 4, 2021 04:35
Show Gist options
  • Save abadongutierrez/1b55f3fd87ab8e8f88e5a0fd59ee950f to your computer and use it in GitHub Desktop.
Save abadongutierrez/1b55f3fd87ab8e8f88e5a0fd59ee950f to your computer and use it in GitHub Desktop.
Micronaut Tutorial - Login with Microsoft - application.yml final look
micronaut:
application:
name: <your-application-name>
security:
authentication: cookie
token:
jwt:
signatures:
secret:
generator:
secret: 'pleaseChangeThisSecretForANewOne'
jws-algorithm: 'HS256'
oauth2:
clients:
microsoft:
client-id: <your-client-id>
client-secret: <your-client-secret>
scopes:
- User.Read
authorization:
url: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize'
token:
url: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token'
auth-method: client-secret-post
endpoints:
logout:
get-allowed: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment