Skip to content

Comments

Fix oauth TypeError (int + string)#18921

Merged
joshuarli merged 1 commit intogetsentry:masterfrom
stevie-mayhew:patch-1
May 26, 2020
Merged

Fix oauth TypeError (int + string)#18921
joshuarli merged 1 commit intogetsentry:masterfrom
stevie-mayhew:patch-1

Conversation

@stevie-mayhew
Copy link
Contributor

Ensure that authorization expires_in token is an integer before adding it to another int

This is my first PR to sentry in and the contributing guidelines don't mention if I need to provide more information, stack errors etc. Let me know if you want them and I'll endeavor to add to future PRs

Ensure that authorization `expires_in` token is an integer before adding it to another int
@joshuarli joshuarli self-requested a review May 22, 2020 01:02
Copy link
Member

@joshuarli joshuarli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do see int casting of payload["expires_in"] in a few other places in the codebase, so this change seems good. But just curious, how'd you hit this issue? (I wasn't able to find anything in our internal sentry issues.)

@stevie-mayhew
Copy link
Contributor Author

This came up in a on-prem installation while trying to get Github authorisation set up. I couldn't find anything else in forums or issues which was related so figured it was a good change :)

Sentry 10.1.0.dev0086c534 FYI

Copy link
Contributor

@scefali scefali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Member

@dashed dashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@joshuarli joshuarli merged commit 4d2d27e into getsentry:master May 26, 2020
@joshuarli
Copy link
Member

Thanks @stevie-mayhew!

@stevie-mayhew stevie-mayhew deleted the patch-1 branch May 26, 2020 19:22
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants