#BAEL-5443: add spring.security.oauth2.client properties

This commit is contained in:
h_sharifi 2022-09-12 15:39:41 +04:30
parent 326ce93f67
commit 359a33a2ba
1 changed files with 7 additions and 4 deletions

View File

@ -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
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