Add sample for OAuth2 RestClient interceptor
Closes gh-294
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
server:
|
||||
port: 9000
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.springframework.security: trace
|
||||
|
||||
|
||||
spring:
|
||||
security:
|
||||
user:
|
||||
@@ -28,6 +33,24 @@ spring:
|
||||
- "openid"
|
||||
- "profile"
|
||||
require-authorization-consent: true
|
||||
login-client-with-messaging:
|
||||
registration:
|
||||
client-id: "login-client-with-messaging"
|
||||
client-secret: "{noop}with-messages"
|
||||
client-authentication-methods:
|
||||
- "client_secret_basic"
|
||||
authorization-grant-types:
|
||||
- "authorization_code"
|
||||
- "refresh_token"
|
||||
redirect-uris:
|
||||
- "http://127.0.0.1:8080/login/oauth2/code/login-client-with-messaging"
|
||||
- "http://127.0.0.1:8080/authorized"
|
||||
scopes:
|
||||
- "openid"
|
||||
- "profile"
|
||||
- "message:read"
|
||||
- "message:write"
|
||||
require-authorization-consent: true
|
||||
messaging-client:
|
||||
registration:
|
||||
client-id: "messaging-client"
|
||||
@@ -35,7 +58,12 @@ spring:
|
||||
client-authentication-methods:
|
||||
- "client_secret_basic"
|
||||
authorization-grant-types:
|
||||
- "authorization_code"
|
||||
- "refresh_token"
|
||||
- "client_credentials"
|
||||
redirect-uris:
|
||||
- "http://127.0.0.1:8080/authorized"
|
||||
scopes:
|
||||
- "message:read"
|
||||
- "message:write"
|
||||
- "message:write"
|
||||
require-authorization-consent: true
|
||||
Reference in New Issue
Block a user