Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can we avoid creating client-session for the case when access-token requested? #37117

@mposolda

Description

@mposolda

We currently create client session in case that access-token is requested from token-exchange and in case that client-session of the requester-client is not in the user session already. Ideal is, if we avoid creating client session for this case.

The client-session is currently needed for the case that exchanged token is sent to Introspection-endpoint or UserInfo-endpoint. Maybe also other endpoints (EG. account/admin REST and more?). Can we make those endpoints available even if client-session of requester-client won’t exists on the user session?

One possibility, which might help, is the issue #37118 . This can help to detect if access-token was created from token-exchange grant (Hence this issue should be probably follow-up to #37118 ).

Note: The AuthenticatedClientSessionModel object instance would be probably still needed (similarly like ClientSessionContext), but hopefully we can make it "transient" to avoid persisting it in the infinispan (Something similar like we did for OAuth2 client-credentials grant).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions