Files
spring-boot-demo/http-service-clients/output/07-oauth2-client-credentials.txt
T
2026-11-06 21:44:06 +05:30

15 lines
505 B
Plaintext

# @ClientRegistrationId("stub") on the interface + OAuth2RestClientHttpServiceGroupConfigurer
call 1: whoAmI() -> {caller=demo-user, tokenKind=oauth2}
call 2: whoAmI() -> {caller=demo-user, tokenKind=oauth2}
call 3: whoAmI() -> {caller=demo-user, tokenKind=oauth2}
# what the stub saw, in order
POST /oauth/token
GET /secure/bearer
GET /secure/bearer
GET /secure/bearer
token requests: 1
# the same interface WITHOUT the group configurer: the annotation is silently ignored
whoAmI() -> 401 UNAUTHORIZED