-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(coderd): support string type for oidc response's expires_in json property #20152
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
Conversation
depending on Azure AD product/version the property cannot be of type integer or string.
|
Hi @yyefimov, Thanks for your PR, and sorry for the delayed response. We usually review PRs once they start passing CI. Looks like there are some issues with formatting. Can you run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!
As @matifali mentioned, just need to get this passing linting
Hello, this is done. thanks. |
Some versions of Azure AD return expires_in property as string. Use json.Number to accept either integer or string and then convert to int64.
Helpful links:
https://learn.microsoft.com/en-us/answers/questions/2337020/azure-ad-token-endpoint-returns-expires-in-as-stri
https://feedback.azure.com/d365community/idea/7772fd95-26e6-ec11-a81b-0022484ee92d