Skip to content

Support the injection of AccessTokenCredential and IdTokenCredential #5303

@sberyozkin

Description

@sberyozkin

Description
Let users do

@Inject
AccessTokenCredential at;

instead of

@Inject
SecurityIdentity identity;
...
AccessTokenCredential at = identity.getTokenCredential(AccessTokenCredential.class);

and the same for IdTokenCredential.

A bit simpler when nothing else is required from SecurityIdentity.
(Based on Pedro's idea to inject refresh tokens as token creds)

Implementation ideas
Add a simple producer

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions