server:
  port: 8010
spring:
  cloud:
    gateway:
      server:
        webflux:
          routes:
            - id: backend_resource_route
              uri: http://127.0.0.1:8000
              predicates:
                - Path=/resources/**
          default-filters:
            - TokenRelay=
  security:
    oauth2:
      resource-server:
        jwt:
          issuer-uri: http://127.0.0.1:9000
      client:
        provider:
          oauth-server:
            issuer-uri: http://127.0.0.1:9000
            user-info-uri: ${spring.security.oauth2.client.provider.oauth-server.issuer-uri}/user
            authorization-uri: ${spring.security.oauth2.client.provider.oauth-server.issuer-uri}/oauth2/authorize
            token-uri: ${spring.security.oauth2.client.provider.oauth-server.issuer-uri}/oauth2/token
        registration:
          client-server-oidc:
            provider: oauth-server
            client-id: client-server
            client-secret: 123456
#            client-secret: $2a$10$DqWHIuo3MjOOLn/YMzRD5.vaaNigcklw852a0q910eZclzVSlqgcK
            client-name: client-server-oidc
            authorization-grant-type: authorization_code
            redirect-uri: http://127.0.0.1:8010/login/oauth2/code/{registrationId}
            scope:
              - profile
              - openid
