Skip to content

Implemented token based authentication#85

Closed
amlannandy wants to merge 1 commit into
scorelab:masterfrom
amlannandy:token-auth
Closed

Implemented token based authentication#85
amlannandy wants to merge 1 commit into
scorelab:masterfrom
amlannandy:token-auth

Conversation

@amlannandy
Copy link
Copy Markdown
Contributor

@amlannandy amlannandy commented Feb 24, 2021

Description

Login with react app doesn't persist the session in flask_login. So, we can return a auth token to the user on login. Which can be used in the Authorization header for accessing protected routes.

Fixes #84

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Try using a protected route without login, using the auth token in header.

Test Configuration:

  • Chrome
  • Postman
  • Windows 10

screen-capture (1)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

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.

Create token based authentication for React app

1 participant