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

Add support for device flow grant type to oidc-client #39050

Closed
stianst opened this issue Feb 28, 2024 · 4 comments · Fixed by #39054
Closed

Add support for device flow grant type to oidc-client #39050

stianst opened this issue Feb 28, 2024 · 4 comments · Fixed by #39054
Labels
area/oidc kind/enhancement New feature or request
Milestone

Comments

@stianst
Copy link
Contributor

stianst commented Feb 28, 2024

Description

I'm working on a token CLI for Keycloak that can be useful for developers to understand tokens and flows, but also that can be used to obtain tokens for other CLIs, including supporting for kubectl.

For password and service accounts I'm using the oidc-client, which is great as it has a lot of features that I would otherwise have to write, but one problem is that it doesn't support Device Authorization Grant.

I'm not expecting oidc-client to do the first leg of obtaining the device code, but would be great if it could support the token request. I suspect this may be as simple as adding DEVICE_CODE("urn:ietf:params:oauth:grant-type:device_code") to

.

Implementation ideas

No response

@stianst stianst added the kind/enhancement New feature or request label Feb 28, 2024
Copy link

quarkus-bot bot commented Feb 28, 2024

/cc @pedroigor (oidc), @sberyozkin (oidc)

@sberyozkin
Copy link
Member

Hi Stian, @stianst, sure, yes, the dynamic parameters can be passed with the map, would you like to open a PR to add that enum value, I can help with adding a simple test ?

@sberyozkin
Copy link
Member

sberyozkin commented Feb 28, 2024

@stianst I can do the whole PR a bit later as you already proposed the actual enum value, but of course you are welcome to contribute if you'd like, we can do it for Quarkus 3.9.0

@stianst
Copy link
Contributor Author

stianst commented Feb 28, 2024

@sberyozkin thanks, I did a quick draft PR for this

@quarkus-bot quarkus-bot bot added this to the 3.9 - main milestone Feb 29, 2024
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