Open Kushan2021 opened 2 years ago
Do you have a sample app?
Have you tried adding @Replaces(DefaultOpenIdAuthenticationMapper.class)
if you want to replace the global mapper? If not, you will need to add a @Named
qualifier.
https://micronaut-projects.github.io/micronaut-security/latest/guide/#openid-user-details`
Yes I already used @Named
qualifier, but forgot to add on sample code.
This is my application.yml.
`micronaut:
security:
oauth2:
enabled: true
clients:
keycloak:
enabled: true
grant-type: password
client-id: <<my client id>>
client-secret: <<my client secret>>
openid:
issuer: <<my openid issuer>>
configuration-path: /.well-known/openid-configuration
jwks-uri: << my jwks uri >>
token:
auth-method: client-secret-post`
Application works fine after upgraded into version 3.5.0 and downgraded this dependency.
`<dependency>
<groupId>io.micronaut.security</groupId>
<artifactId>micronaut-security-oauth2</artifactId>
<version>3.4.1</version>
<scope>compile</scope>
</dependency>`
Once I downgrade in version 3.4.1 io.micronaut.security.authentication.Authenticator
variable authenticationProviders
contains OpenIdPasswordAuthenticationProvider
.
But new version authenticationProviders
contains empty array.
Expected Behavior
Micronaut version 3.4.1
Custom class created by using implement
OpenIdAuthenticationMapper
and it callscreateAuthenticationResponse
.Actual Behaviour
Micronaut version 3.5.0
Custome class
createAuthenticationResponse
method not triggered.Environment Information
Version
3.5.0