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

Feature: An option to remember authentications #5803

Closed
silverwind opened this issue Jan 16, 2020 · 3 comments · Fixed by #5939
Closed

Feature: An option to remember authentications #5803

silverwind opened this issue Jan 16, 2020 · 3 comments · Fixed by #5939

Comments

@silverwind
Copy link
Contributor

silverwind commented Jan 16, 2020

Authentications are lost on page reload and I think a elegant way to solve it would be a "Remember Authorization" checkbox for each auth that was entered. With it enabled, auths could be stored persistently in localStorage and applied on page load again after a sanity check that the auth parameters have not changed since it was last stored.

Related: #4851

@f9fwtf
Copy link

f9fwtf commented Oct 24, 2022

Hi, is it possible to have a "remember me" option so the user can decide if his token gets persisted?

@ahmedivy
Copy link

ahmedivy commented May 20, 2024

Is there a way to persist the session with fastapi?

@enkhjile
Copy link

@ahmedivy
You do that with the following

app = FastAPI(swagger_ui_parameters={"persistAuthorization": True})

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

Successfully merging a pull request may close this issue.

4 participants