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

FauxtonUI Enabling Single Use JWT Authentication #1468

Open
pablodavidortega opened this issue Jan 9, 2025 · 0 comments · May be fixed by #1469
Open

FauxtonUI Enabling Single Use JWT Authentication #1468

pablodavidortega opened this issue Jan 9, 2025 · 0 comments · May be fixed by #1469

Comments

@pablodavidortega
Copy link

Expected Behavior

CouchDB should allow for authentication via a JWT generated from an outside service. This would allow admins (and non-admins) to log into the UI using temporary tokens rather than static credentials. A general pattern for multiple authentication methods should also be established, keeping with Fauxton's general user experience guidelines. This is related but distinct to #1457, which mentions implementing a full Identity Provider Flow. These two methods can work together and are largely similar to each other under the hood.

When logging in, a user should be able to supply a token instead of a BasicAuth pair. When logged in, they should have access in the same way that a user with the same roles would.

When a token expires, the token should be deleted from the browser data, and the user will be automatically redirected to the login page. This is behavior similar to a session timeout today.

Current Behavior

Only BasicAuth is supported in the UI.

Possible Solution

Implementing a JWT login form as an option in a drop down in #login page. PR will be supplied.

Steps to Reproduce (for bugs)

  1. Attempt to log in with a token

Context

Users often want to validate their data in the UI. This can lead to sharing credentials to access the UI. These credentials may or may not be stored or handled properly. In scenarios where an environment is properly managed and secure, the credentials are not available to anybody and validating data becomes more difficult.

Allowing JWT in the UI would allow a user to get a short lived token from a token provider, log into FauxtonUI, and take a look at their data.

Your Environment

pablodavidortega added a commit to pablodavidortega/couchdb-fauxton that referenced this issue Jan 9, 2025
stopping point
added tests for action loginJwt

Added some more tests for the actions class

JWT Token Authentication - Fixes apache#1468
@pablodavidortega pablodavidortega linked a pull request Jan 9, 2025 that will close this issue
4 tasks
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.

1 participant