Hi,
I have not been able to get the JWT mechanism to work.
Have been getting this error.
{ "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED" } }
Response Header :
HTTP/1.1 401 Unauthorized WWW-Authenticate: Bearer realm="
https://accounts.google.com/" Vary: Origin Vary: X-Origin Vary: Referer Content-Type: application/json; charset=UTF-8 Date: Thu, 31 Dec 2020 00:46:31 GMT Server: ESF Cache-Control: private X-XSS-Protection: 0 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Transfer-Encoding: chunked
This is an example of the payload (header and claim set).
{"kid":"7c1~645","typ":"JWT","alg":"RS256"}.
{
"exp":1609379189,
"iat":1609375589
}. (above data signed with private key)
So I have reverted to the Access token method. Not a big issue but would have been good to get the JWT mechanism to work. I will continue to try the JWT mechanism in my own time but for my work project, I will be using the access token method.
Dominic