JWT Authentication 401 Error
Answered
Posted Jul 26, 2022
Hi Team,
We are implementing Zendesk Support SDK and for authentication and setting the identity, JWT has been used.
After initialization, when we are fetching tickets of users the sdk responds with error “Unauthorized Http Status 401”.
After checking the Support Sdk docs, we get to know it may be related to SSL issue but the domain has valid ssl certificates. We use the below command to verify this:
"openssl s_client -connect grow-api.reddoorz.com:443 -servername grow-api.reddoorz.com"
So, please help to resolve this issue on priority.
Thanks & Regards,
Ankush Singh
0
1
1 comment
Greg Katechis
iat
parameter is being used incorrectly. You are passing in 86,400 seconds, when the RFC spec notes that this is supposed to be the time that the token was issued. At Zendesk, this must be within 3 minutes of the time the token is being used.If this is your first time using JWT, I would recommend checking out jwt.io for some great resources on how to use it, as well as how to debug issues that you're having.
0
Sign in to leave a comment.