Posts

Showing posts with the label jwt

Heroku crashes with a jwt error [on hold]

Heroku crashes with a jwt error [on hold] i have created a flask app that uses JWT for authentification. The app crashes on Heroku with the following log details. from jwt import ExpiredSignatureError, InvalidTokenError ImportError: cannot import name 'ExpiredSignatureError' I dont have any such import in my code from jwt import ExpiredSignatureError, InvalidTokenError ImportError: cannot import name 'ExpiredSignatureError' App logs This question appears to be off-topic. The users who voted to close gave this specific reason:

ASP.NET Core 2 - Angular & JWT Authentication

ASP.NET Core 2 - Angular & JWT Authentication Problem : I seem unable to fetch the User or any user-related data (e.g. UserID ) in any controller after the token has been recorded to browser local storage. User UserID I've set a breakpoint and studied HttpContext member of ControllerBase instance (the client app makes request + the auth_token is kept in local storage at this stage). HttpContext ControllerBase auth_token You only can extract the referrer url from Headers but there's no info about tokens . Headers tokens Even if you create a cookie for the token - the Request doesn't have it (0 cookies found at all). Request Perhaps I misunderstand the concept of how authorization works. Here's the bit I misunderstand most - how does ASP.NET Core fetch the token from the request made by client app - it must be kept in headers? ASP.NET Core token Also, could anyone share a working example of JWT Authentication where Angular & ASP.NET Core are separate sol...