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

Add endpoint to return auth token with session management #119

Closed
wants to merge 1 commit into from

Conversation

suksw
Copy link
Collaborator

@suksw suksw commented Apr 5, 2020

Same PR as before after resolving conflicts. fixed #89

  • This will automatically create a table for the sessions in mysql.
  • A session is created only during login at /auth (not with http basic auth)
  • The session will get automatically deleted after an hour
  • When username and password are sent to /auth the endpoint will return the header X-Auth-Token
  • Resource /notification will expect the same header X-Auth-Token in its requests

@suksw suksw closed this Apr 5, 2020
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 this pull request may close these issues.

implement auth mechanism for ui login
1 participant