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

Allow User Login Admin API to return refresh tokens #18100

Open
anoadragon453 opened this issue Jan 20, 2025 · 0 comments
Open

Allow User Login Admin API to return refresh tokens #18100

anoadragon453 opened this issue Jan 20, 2025 · 0 comments

Comments

@anoadragon453
Copy link
Member

Imagine I have configured Synapse (legacy) SSO with nonrefreshable_access_token_lifetime: 24h in order to encourage admins and users to use refresh tokens.

I also have an admin tool that I have an account for, and would like to log into that account using the User Login Admin API.

Currently, I can do so and receive an access_token. But this access token will expire in 24hrs! I'd love to be able to get back a refresh token that I can use to refresh the access_token before it expires every 24hrs.

Proposal

Similar to the User Registration Admin API, we add a refresh_token body parameter to the User Login Admin API. This would then cause a refresh token to be returned in a refresh_token field in the response.

Admin tooling could then refresh the access token in order to get back a new access token with a fresh 24hr lifetime.

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

No branches or pull requests

1 participant