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 refresh tokens in OpenBao's OIDC provider #186

Open
siepkes opened this issue Mar 7, 2024 · 0 comments
Open

Support refresh tokens in OpenBao's OIDC provider #186

siepkes opened this issue Mar 7, 2024 · 0 comments
Assignees
Labels

Comments

@siepkes
Copy link
Contributor

siepkes commented Mar 7, 2024

Is your feature request related to a problem? Please describe.

Currently it is possible to retrieve an access_token in OpenBao but not to extend it's lifetime in a OAuth2 / OIDC compatible way. When creating client applications (such as a single page application or IOS / Android app) you don't want the user to have to re-login every day. However creating an access_token with a really long lifetime is often not desirable.

Describe the solution you'd like

I would like OpenBao to support section 1.5 of the OAuth2 spec, refresh tokens. Allowing me to obtain a new access_token (OpenBao batch token) by using a refresh token. The refresh token is provided to the client at the same time the access_token is provided. In OpenBao's case the refresh token could be used to extend the lifetime of the access_token to its max_ttl. The access_token is allowed to change when it is refreshed (as far as I know). Same goes for the refresh token itself.

Describe alternatives you've considered

Using the OpenBao specific API to refresh the token since the OIDC access_token is in essence "juist" a OpenBao batch token. However that might hurt OpenBao's OIDC adoption since standard client libraries with support for refresh tokens won't work.

I originally created this as a Vault feature request: hashicorp/vault#16134. Where it gathered the most engagement I ever had online, 23 thumbs-up emoji's! ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant