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() {
118
118
if (OAuth2TokenType .ACCESS_TOKEN .equals (context .getTokenType ())) {
119
119
AbstractAuthenticationToken principal = context .getPrincipal ();
120
120
System .out .println ("registered client: " + context .getRegisteredClient ());
121
+ System .out .println ("token format : " +
122
+ context .getRegisteredClient ().getTokenSettings ().getAccessTokenFormat ().getValue ());
121
123
System .out .println ("authorities : " + principal .getAuthorities ());
122
124
System .out .println ("authorized scopes : " + context .getAuthorizedScopes ());
123
125
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ spring:
36
36
authorization-grant-types :
37
37
- client_credentials
38
38
client-authentication-methods :
39
- - client_secret_post
40
- token-settings :
41
- access-token-format : reference
39
+ - client_secret_post
42
40
scopes :
43
41
- openid
44
42
- profile
@@ -47,6 +45,8 @@ spring:
47
45
- rabbitmq.read:*/*
48
46
- rabbitmq.write:*/*
49
47
client-name : producer
48
+ token :
49
+ access-token-format : reference
50
50
rabbitmq_client_code :
51
51
registration :
52
52
provider : spring
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ spring:
28
28
- client_credentials
29
29
client-authentication-methods :
30
30
- client_secret_basic
31
- token-settings :
32
- access-token-format : reference
33
31
scopes :
34
32
- rabbitmq.configure:*/*
35
33
- rabbitmq.read:*/*
36
34
- rabbitmq.write:*/*
37
35
client-name : producer
36
+ token :
37
+ access-token-format : reference
38
38
Original file line number Diff line number Diff line change @@ -241,7 +241,6 @@ module.exports = {
241
241
let params = 'client_id=' + client_id +
242
242
'&client_secret=' + client_secret +
243
243
'&grant_type=client_credentials' +
244
- '&token_format=jwt' +
245
244
'&response_type=token'
246
245
if ( scopes != "" ) {
247
246
params = params + "&scope=" + scopes
You can’t perform that action at this time.
0 commit comments