openId Login Page Issue

Hi,

I had two types of users,

  1. User who is created in system and
  2. User who will login in application via oauth2 Adfs

But when we add OpenId dependency and Oauth2 properties in application.properties files

spring.security.oauth2.client.provider.adfs.issuer-uri

After Implementing Adfs login when we access URL we are by default redirected to Adfs page to login.

Instead there must be option of normal login with database authentication or select login via Adfs and process further login in application via adfs authentication.

Kindly Suggest if any changes need to be done in dependencies or application.propperties parameter

below parameters are used for Adfs login.

spring.security.oauth2.client.registration.adfs.client-id
spring.security.oauth2.client.registration.adfs.client-secret
spring.security.oauth2.client.registration.adfs.scope
spring.security.oauth2.client.provider.adfs.issuer-uri
spring.security.oauth2.resourceserver.jwt.issuer-uri
spring.security.oauth2.client.registration.adfs.redirect-uri
spring.security.oauth2.client.provider.adfs.authorization-grant-type
spring.security.oauth2.client.provider.adfs.authorization
spring.security.oauth2.client.provider.adfs.token-uri
jmix.oidc.default-claims-roles-mapper.roles-claim-name=roles
jmix.oidc.use-default-configuration=true

And How to get Role of the User from system since user is created in jmix but it is getting login via ADFS.

Thank you in advance.

If user Exists in system login with same role of user.

I had added above configuration it was working fine i was able to login in adfs but suddenly same configuration is not working as expected getting just message. Same configuration is working in already deployed war.

Login with OAuth 2.0
Screenshot from 2023-08-02 10-16-04