Hi everybody,
Is there any working Python example of custom app authentication?
There is a Node example, but I cannot make it work on Python.
My Python code (powered by Flask and PyJWT)
import jwt
...
@app.route('/auth', methods=['GET'])
def auth():
args = request.args
token = args['token']
data = jwt.decode(token, MY_CLIENT_SECRET, algorithms=['HS256', 'SHA256', 'RSASSA', 'HMAC'])
return Response() # just a stub for now
So I’m getting error “Signature verification failed” when decode the token (jwt.decode method).
What am I do wrong?
Best regards,
Sergey.