Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the injection of AccessTokenCredential and IdTokenCredential #5303

Closed
sberyozkin opened this issue Nov 7, 2019 · 0 comments · Fixed by #5331
Closed

Support the injection of AccessTokenCredential and IdTokenCredential #5303

sberyozkin opened this issue Nov 7, 2019 · 0 comments · Fixed by #5331
Assignees
Labels
area/oidc kind/enhancement New feature or request
Milestone

Comments

@sberyozkin
Copy link
Member

sberyozkin commented Nov 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oidc kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants