Skip to content

Instantly share code, notes, and snippets.

@maxiwu
Created December 6, 2018 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxiwu/377de5d356775ec6b11ec3898c311c8b to your computer and use it in GitHub Desktop.
Save maxiwu/377de5d356775ec6b11ec3898c311c8b to your computer and use it in GitHub Desktop.
zuul gateway yml
spring:
application:
name: zuul-gateway
server:
port: 8762
# context-path: /client
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/
zuul:
routes:
gallary:
path: /res/gallary/**
serviceId: gallery-service
image:
path: /res/images/**
serviceId: image-service
logging:
level:
org.springframework.security.web.FilterChainProxy: DEBUG
#Azure B2C
security:
basic:
enabled: false
oauth2:
sso:
loginPath: /login
client:
clientId: 111ddde5-38af-4c31-a540-f204d64ccc5e
clientSecret: [protected]
access-token-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/token
user-authorization-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/authorize
scope: https://umediax.onmicrosoft.com/signinup/user_impersonation
authorizedGrantTypes: authorization_code
auto-approve-scopes: '.*'
resource:
user-info-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/userinfo
jwk:
key-set-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/discovery/v2.0/keys
prefer-token-info: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment