# Mappings are provided so that environment specific servers can be mapped more easily
mappings:
  oidc-ms: http://localhost:8080
  sample-ms: http://localhost:8900
  authn-ms: http://localhost:8281
  authz-ms: http://localhost:8282 
  swagger-ms: http://localhost:8283
  gateway-ms: http://localhost:8910

http:
  port: 8080

oidc:
  redirect_uri: ${mappings.oidc-ms}/oidc/cb

authorization:
  endpoint: ${mappings.authz-ms}/token
  refreshTokenPath: /refresh
  client_id: oidc_id
  client_secret: app_secret
  
---

spring.profiles: docker-compose
  
http:
  port: 80

issuer: http://oidc-ms
oidc:
  redirect_uri: http://localhost:3001/oidc/cb
  config_file: openidconnect-config-docker.json

authorizationEndpoint: http://authorization-ms/token

mappings:
  sample-ms: http://sample-ms
  authn-ms: http://authentication-ms
  authz-ms: http://authorization-ms
  swagger-ms: http://swagger-ms
  gateway-ms: http://gateway-ms

client_validator:
  file: clients-docker.json
# Mappings are provided so that environment specific servers can be mapped more easily
mappings:
  oidc-ms: http://localhost:8080
  sample-ms: http://localhost:8900
  authn-ms: http://localhost:8281
  authz-ms: http://localhost:8282 
  swagger-ms: http://localhost:8283
  gateway-ms: http://localhost:8910

http:
  port: 8080

oidc:
  redirect_uri: ${mappings.oidc-ms}/oidc/cb

authorization:
  endpoint: ${mappings.authz-ms}/token
  refreshTokenPath: /refresh
  client_id: oidc_id
  client_secret: app_secret
  
---

spring.profiles: docker-compose
  
http:
  port: 80

issuer: http://oidc-ms
oidc:
  redirect_uri: https://gw.trajano.net/oidc/cb
  config_file: openidconnect-config-docker.json

authorizationEndpoint: http://authorization-ms/token

mappings:
  sample-ms: http://sample-ms
  authn-ms: http://authentication-ms
  authz-ms: http://authorization-ms
  swagger-ms: http://swagger-ms
  gateway-ms: http://gateway-ms

client_validator:
  file: clients-docker.json
  
---

spring.profiles: prod
spring.profiles.include:
- docker-compose

oidc:
  redirect_uri: https://gw.trajano.net/oidc/cb

Fix the redirect_uri to point to the prod one
Fix the redirect_uri to point to the prod one
