15 lines
505 B
Plaintext
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
|