Skip to content

Conversation

@Raywire
Copy link
Owner

@Raywire Raywire commented Mar 24, 2019

What does this PR do?
Adds JSON Web Token authentication.
Description of Task to be completed?

  • Obtain a refresh token and an access token to authenticate all the routes.
    The tokens are obtained from the following endpoints
    POST /api/token/
    POST /api/token/refresh

How should this be manually tested?

  • After cloning the repo, cd into the project folder and into the folder with the manage.py file
  • To run the project use the following command:
    python manage.py runserver
  • Using Postman test the endpoints above on the localhost server that is running.

Any background context you want to provide?
All routes can now only be accessed with a valid Bearer token
The refresh token is valid for 24 hours and the access token is valid for 1 hour.
What are the relevant pivotal tracker stories?
https://www.pivotaltracker.com/story/show/164851399
Screen Shot 2019-03-24 at 18 39 06
Screen Shot 2019-03-24 at 18 31 58

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.

2 participants