Oauth2 Authentication not working #869
-
I configured oauth2 authentication but after logging in successfully again it is redirecting to login page. This is the configuration I am using.
In API request for /me I see logged as true and username is null. Am I missing anything? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Here is a working with google OIDC : micronaut:
security:
enabled: true
oauth2:
enabled: true
clients:
oauth:
client-id: "<client-id>"
client-secret: "<secret>"
openid:
issuer: "<issuer>"
akhq:
security:
default-group: no-roles
oidc:
enabled: true
providers:
google:
label: "Login with Google"
username-field: email
default-group: reader
users:
- username: [email protected]
groups:
- admin I think your You can enable more debug output with configuration below to find the right field : logger:
levels:
io.micronaut.security: TRACE
org.akhq.configs: TRACE |
Beta Was this translation helpful? Give feedback.
-
Thanks @tchiotludo , oauth2:
enabled: true
clients:
oauth:
client-id: "<client-id>"
client-secret: "<secret>"
scopes:
- email
- openid
- groups
- profile
openid:
issuer: "<issuer>" |
Beta Was this translation helpful? Give feedback.
Thanks @tchiotludo ,
This configuration worked.