-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"error":"invalid_jwt_token","error_description":"iat missing" #153
Comments
Same problem. I can see this is a Blackboard issue, isn't it? how did you solve it @alextoro85? |
Hi @richard015ar, |
That did the trick, thank you @alextoro85! you saved me several hours debugging it. |
/I know @richard015ar, very disappointing,
|
Nice approach! I will definitely try it now! |
Checking the Specification for JWT https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6.
According to JWT specification, IAT claim "MUST" be a NumericDate Value. And NumericDate is defined in the document as follows,
Since time format for /**
* Return native toDateTimeImmutable PHP object matching the current instance.
*
* @example
* ```
* var_dump(Carbon::now()->toDateTimeImmutable());
* ```
*
* @return DateTimeImmutable
*/
public function toDateTimeImmutable()
{
return new DateTimeImmutable($this->rawFormat('Y-m-d H:i:s.u'), $this->getTimezone());
} MR in #189 does resolve the problem due to a side effect that format format method seems to ignore the |
After a succed login and launch validation, when I want to getContextMembershipForPayload (Lti1p3Nrps), it fails by responding "iat missing".
I tried using OAT\Library\Lti1p3Core\Service\Client\LtiServiceClient directly. Same happens.
Whole error:
Cannot get context membership for payload: Cannot get context membership for claim: Cannot get context membership: Cannot get access token: Client error:
POST https://developer.anthology.com/api/v1/gateway/oauth2/jwttoken
resulted in a400 Bad Request
response: {"error":"invalid_jwt_token","error_description":"iat missing"}So it fails in getAccessToken from LtiServiceClient
The thing is that if I print the token claims... iat appears. So... very very strange.
Any ideas?
Thanks in advance
The text was updated successfully, but these errors were encountered: