Skip to content

Commit adfad24

Browse files
Configure spring with opaque token
Tests failing now until backend calls introspection endpoint
1 parent 824304d commit adfad24

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

selenium/authorization-server/src/main/java/com/rabbitmq/authorization_server/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

selenium/authorization-server/src/main/resources/application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

selenium/suites/authnz-messaging/spring/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

selenium/test/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy