Giter VIP home page Giter VIP logo

complete-jwt-authentication's People

Contributors

dependabot[bot] avatar toruitas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

complete-jwt-authentication's Issues

Social Login

How would you implement authentication when using Social Login with Facebook or Google instead of manual user creation?

is token getting refreshed

Hi,
I failed to see how/if you refresh the access token.
the access token is valid for 5 minutes. what happens after 5 minutes? starting getting 401?

React Development with Hot Reload

Thanks for the writeup was extremely easy to understand. My only question is how do you do active development on the React side and hot reload or something in order to develop?

Seems like the current setup you would have to do the npm run build each time to build out the static content, wasn't sure if there was a easy way to hot reload somehow on this for active react development or if its better to just do that via normal npm start type options or something.

Thanks

NO VALIDATION

Seems like we are enable to validate whether password is incorrect or is there a duplication

Code blocks broken in article

So far, the article on Hackernoon has been a great resource; thanks for writing it!

Code blocks in Hackernoon appear to be broken, though. There are no line breaks, making the examples in the article itself really hard to read.

Does this article reside anywhere else that doesn't have issues with code blocks in the article?

400 Errors

When I set up the project in a virtualenv and started it up, I can create a user. It is added to the database. But attempting to login is just 400 bad request errors. I am trying to debug it but that is becoming tricky.

Also there doesnt seem to be any error handling when it comes to a wrong password. I might be completely wrong on this aspect though. but the 400 errors make the project unusable.

Thank you for making this

Seriously. I'm just trying to get an MVP off the ground, and man is it difficult to get auth right. I'm so grateful to you for making this and sharing it with me, especially since it's only been a few days, and because now I don't have to come up with the workflow myself. I think it's very much worth the switch away from Flask.

Django Rest Framework Testing

Hi,

I have gotten this working and am very grateful for your work, well done!

Something that I think needs to be done is the addition of testing. Could you add an example of how to go about using the Django testing framework to create user and login.

The part I get stuck at is that when I go to login(using the testing, I get the index.html page back and not the aceess and refresh token.

I have two functions:

def setUp(self):
        
    try:
        response = self.client.post('/user/create/', {"username":TEST_USER_LOGIN_NAME, "password":TEST_USER_LOGIN_PASSWORD, "email":TEST_USER_LOGIN_EMAIL}, format="json")
    except:
        print("Error occured while creating the user login")

and

    def test_GetListProducts(self):
        response = self.client.post("/token/obtain/", {"username":TEST_USER_LOGIN_NAME, "password":TEST_USER_LOGIN_PASSWORD}, format="json")
        # print(response) <-- This gives me back the index.html instead of the response with access and refresh tokens

        #self.client.credentials(HTTP_AUTHORIZATION='Token ' + response.data['access'])
        response = self.client.get('productss/')
        self.assertEqual(status.HTTP_200_OK, response.status_code)
        self.assertEqual(True, True)

any help would be greatly appreciated. Or if you want to put up your own example it would be helpful too

Httponly cookie method

First of all thanks for this amazing tutorial. can you please shed some light on how to send tokens using axios by Httponly cookie method!!.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.