diff --git a/spring-boot-modules/spring-boot-keycloak/src/main/resources/application.properties b/spring-boot-modules/spring-boot-keycloak/src/main/resources/application.properties index 9dfd3ea720..9d07dbc2e1 100644 --- a/spring-boot-modules/spring-boot-keycloak/src/main/resources/application.properties +++ b/spring-boot-modules/spring-boot-keycloak/src/main/resources/application.properties @@ -2,10 +2,13 @@ server.port=8081 #Keycloak Configuration -keycloak.auth-server-url=http://localhost:8180/auth +keycloak.auth-server-url=http://keycloak.dev.modernisc.com:8180/auth keycloak.realm=SpringBootKeycloak keycloak.resource=login-app keycloak.public-client=true -#keycloak.security-constraints[0].authRoles[0]=user -#keycloak.security-constraints[0].securityCollections[0].patterns[0]=/customers/* -keycloak.principal-attribute=preferred_username \ No newline at end of file +keycloak.principal-attribute=preferred_username + +spring.security.oauth2.client.registration.keycloak.client-id=login-app +spring.security.oauth2.client.registration.keycloak.authorization-grant-type=authorization_code +spring.security.oauth2.client.provider.keycloak.issuer-uri=http://keycloak.dev.modernisc.com:8180/auth/realms/SpringBootKeycloak +spring.security.oauth2.client.provider.keycloak.user-name-attribute=preferred_username \ No newline at end of file