File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
authorization-server/src/main
java/com/rabbitmq/authorization_server
suites/authnz-messaging/spring Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ public OAuth2TokenCustomizer<JwtEncodingContext> jwtTokenCustomizer() {
118118 if (OAuth2TokenType .ACCESS_TOKEN .equals (context .getTokenType ())) {
119119 AbstractAuthenticationToken principal = context .getPrincipal ();
120120 System .out .println ("registered client: " + context .getRegisteredClient ());
121+ System .out .println ("token format : " +
122+ context .getRegisteredClient ().getTokenSettings ().getAccessTokenFormat ().getValue ());
121123 System .out .println ("authorities : " + principal .getAuthorities ());
122124 System .out .println ("authorized scopes : " + context .getAuthorizedScopes ());
123125
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ spring:
3636 authorization-grant-types :
3737 - client_credentials
3838 client-authentication-methods :
39- - client_secret_post
40- token-settings :
41- access-token-format : reference
39+ - client_secret_post
4240 scopes :
4341 - openid
4442 - profile
@@ -47,6 +45,8 @@ spring:
4745 - rabbitmq.read:*/*
4846 - rabbitmq.write:*/*
4947 client-name : producer
48+ token :
49+ access-token-format : reference
5050 rabbitmq_client_code :
5151 registration :
5252 provider : spring
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ spring:
2828 - client_credentials
2929 client-authentication-methods :
3030 - client_secret_basic
31- token-settings :
32- access-token-format : reference
3331 scopes :
3432 - rabbitmq.configure:*/*
3533 - rabbitmq.read:*/*
3634 - rabbitmq.write:*/*
3735 client-name : producer
36+ token :
37+ access-token-format : reference
3838
Original file line number Diff line number Diff line change @@ -241,7 +241,6 @@ module.exports = {
241241 let params = 'client_id=' + client_id +
242242 '&client_secret=' + client_secret +
243243 '&grant_type=client_credentials' +
244- '&token_format=jwt' +
245244 '&response_type=token'
246245 if ( scopes != "" ) {
247246 params = params + "&scope=" + scopes
You can’t perform that action at this time.
0 commit comments