Skip to content

Commit

Permalink
rebase(bpdm) - Application YML's fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsilva-CGI committed Dec 20, 2023
1 parent 1c0ee1c commit 02494e3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spring:
registration:
gate-client:
authorization-grant-type: client_credentials
client-id: ${bpdm.security.permission.client-id}
client-id: ${bpdm.security.client-id}
client-secret: ${bpdm.security.credentials.secret}
provider: gate-oauth2-provider

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ spring:
client:
provider:
pool-oauth2-provider:
issuer-uri: ${bpdm.security.permission.auth-server-url:http://localhost:8180}/realms/${bpdm.security.permission.realm:master}
issuer-uri: ${bpdm.security.auth-server-url:http://localhost:8180}/realms/${bpdm.security.realm:master}
registration:
pool-client:
authorization-grant-type: client_credentials
client-id: ${bpdm.security.permission.client-id}
client-id: ${bpdm.security.client-id}
client-secret: ${bpdm.security.credentials.secret}
provider: pool-oauth2-provider
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NoAuthenticationConfig {

@EnableWebSecurity
@ConditionalOnProperty(
value = ["bpdm.security.permission.enabled"],
value = ["bpdm.security.enabled"],
havingValue = "true"
)
@Configuration
Expand Down
4 changes: 2 additions & 2 deletions bpdm-gate/src/main/resources/application-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ spring:
oauth2:
resourceserver:
jwt:
issuer-uri: ${bpdm.security.permission.auth-server-url}/realms/${bpdm.security.permission.realm}
jwk-set-uri: ${bpdm.security.permission.auth-server-url}/realms/${bpdm.security.permission.realm}/protocol/openid-connect/certs
issuer-uri: ${bpdm.security.auth-server-url}/realms/${bpdm.security.realm}
jwk-set-uri: ${bpdm.security.auth-server-url}/realms/${bpdm.security.realm}/protocol/openid-connect/certs

#Springdoc configuration
springdoc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ spring:
client:
provider:
orchestrator-oauth2-provider:
issuer-uri: ${bpdm.security.permission.auth-server-url:http://localhost:8180}/realms/${bpdm.security.permission.realm:master}
issuer-uri: ${bpdm.security.auth-server-url:http://localhost:8180}/realms/${bpdm.security.realm:master}
registration: # Note that the oauth2-client-registration property is NOT the client id of the gate in keycloak
orchestrator-client:
authorization-grant-type: client_credentials
client-id: ${bpdm.security.permission.client-id}
client-id: ${bpdm.security.client-id}
client-secret: ${bpdm.security.credentials.secret}
provider: orchestrator-oauth2-provider
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spring:
client:
provider:
orchestrator-oauth2-provider:
issuer-uri: ${bpdm.security.permission.auth-server-url:http://localhost:8180}/realms/${bpdm.security.permission.realm:master}
issuer-uri: ${bpdm.security.auth-server-url:http://localhost:8180}/realms/${bpdm.security.realm:master}
registration: # Note that the oauth2-client-registration property is NOT the client id of the gate in keycloak
gate-client:
authorization-grant-type: client_credentials
client-id: ${bpdm.security.permission.client-id}
client-id: ${bpdm.security.client-id}
client-secret: ${bpdm.security.credentials.secret}
provider: orchestrator-oauth2-provider

0 comments on commit 02494e3

Please sign in to comment.