-
Notifications
You must be signed in to change notification settings - Fork 23
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
Refactor authentication #178
Comments
We need to tackle this as this is a major blocker for anyone who wants to use Ragna in production. There is currently no way to use the UI with any login method other than username and password. However, to be able to log in with OAuth or the like, we cannot keep our current login endpoint on the REST API. Thus, we need a larger refactor here. The scheme that I have in mind is that the API gets a Internally, both endpoints funnel back into a user defined function that validates the login and returns the username that we ultimately store in our DB. We then redirect to a yet to be designed HTML page that gives the user the option to forge a JWT that includes the user ID. This JWT is then used as authorization header for the API as well as cookie for the UI. |
Blocked by #417. Acceptance criteria:
|
Currently, the basic auth, i.e. username / password, is hardcoded in the UI. We did that to meet our presentation deadline. In the aftermath however, we need to lift this and actually implement the UI part as part of the authentication class:
ragna/ragna/core/_authentication.py
Line 13 in 6209845
This would enable us and users to switch the authentication method smoothly.
The text was updated successfully, but these errors were encountered: