-
Notifications
You must be signed in to change notification settings - Fork 4
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
Research the best way to perform authentication #7
Comments
For this I'd suggest as well a JWT Tokens ( probably the safest and easiest. Or we could customize it ).
I think we want to need two approach.
Where ProtectedRoute would just check if user is logged in or not
Secure the apis that needs to. ( Is there some API endpoint doc, like a swagger ? That would be handy actually )
|
Let's go for a couple of hours first. We can update it later with shorter time span and refresh token endpoints.
This will be provided by the backend:
Yes, there will be only one user at any given time (signup will support only one user). Therefore permission system is not needed and user will be able to access everything. Currently this is only in place to protect the endpoints from being unauthenticated.
This seems reasonable and probably the best.
Not right now, we will make endpoints on the go as we figure out what we need. For JWT token you can expect:
I would not complicate with
The 'Change password functionality' will not be available at the moment. If we decide to implement it, we can sign the token with user password hash and it should fail the next time. Right now, we need a simple login screen with no extra bloat. We can reiterate later. |
While accessing the API endpoints, every call has to be authenticated. Research:
'Authorization': Bearer TOKEN
header before every call to authorize the user",The text was updated successfully, but these errors were encountered: