ansrivas / angular2-flask

Simple angular2 app with python-flask backend ( Learning Angular2 )
MIT License
152 stars 46 forks source link

angular2-jwt #8

Closed mkscala closed 7 years ago

mkscala commented 8 years ago

Is it possible to add angular2-jwt Auth0? https://medium.com/@blacksonic86/angular-2-authentication-revisited-611bf7373bf9#.ut4n3xu78

shantanoo-desai commented 7 years ago

Maybe this simple backend implementation module might help Flask-Simple-JWT

ansrivas commented 7 years ago

@shantanoo-desai thanks for the link, I found sometime and started the implementation. Should be completed soon.

shantanoo-desai commented 7 years ago

I actually tried it out yesterday and I can access a protected API with the JWT token. For this repo it makes sense to use flask-simple-jwt for complex ones there is some extended library

ansrivas commented 7 years ago

https://github.com/ansrivas/angular2-flask/tree/0.2.0 implements this. I have also created an automated build with dockerhub. You can test it from master already.

shantanoo-desai commented 7 years ago

If we are in sync with what you are doing for the next TODO then we might need angular2-jwt node module on the frontend and then use JWT_EXPIRES time from the server? (I mean in terms of token expiry on the frontend and session management)

ansrivas commented 7 years ago

Yes, indeed that's the next step. But due to lack of time, I will put it on hold. Feel free to send a pull request though.

shantanoo-desai commented 7 years ago

👍 Same here. Maybe on the weekend I might look into it.