Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yyefimov
Copy link
Contributor

@yyefimov yyefimov commented Oct 2, 2025

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

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Oct 2, 2025
@yyefimov yyefimov changed the title fix(coderd): oidc response expires_in json property can be string fix(coderd): support string type for oidc response's expires_in json property Oct 2, 2025
@matifali matifali requested a review from Emyrk October 8, 2025 06:22
@matifali
Copy link
Member

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 make fmt and make lint? Thanks

Copy link
Member

@Emyrk Emyrk left a 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

@yyefimov
Copy link
Contributor Author

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 make fmt and make lint? Thanks

Hello, this is done. thanks.

@matifali matifali enabled auto-merge (squash) October 15, 2025 17:16
@matifali matifali merged commit 1c8ee5c into coder:main Oct 15, 2025
44 of 46 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community Pull Requests and issues created by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants