summaryrefslogtreecommitdiff
path: root/microservices/01-oauth2-server/src/main/resources/application.yaml
blob: cf2c490f7341bf7c814fa79421d7221cc18a9609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
server:
  port: 8051
  address: 127.0.0.1

#logging:
#  level:
#    org.springframework.security: trace

spring:
  application:
    name: oauth2-server
  # Define the API gateway as an OAuth2 client.
  security:
    oauth2:
      authorizationserver:
        client:
          oidc-client:
            registration:
              client-id: "api-gateway"
              client-secret: "{noop}apiGatewayPassword1234"
              client-authentication-methods:
                - "client_secret_basic"
              authorization-grant-types:
                - "authorization_code"
                - "refresh_token"
              redirect-uris:
                - "http://localhost:5173/bff/login/oauth2/code/api-gateway"
              post-logout-redirect-uris:
                - "http://localhost:5173/"
              scopes:
                - "openid"
                - "profile"
            require-authorization-consent: false

# Define test users and their passwords. You can add more if you want.
app:
  users:
    - username: admin
      password: "{noop}abc123"
    - username: user1
      password: "{noop}abc123"