Skip to content

Fix CI failures #379

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

Merged
merged 2 commits into from
Jun 17, 2025
Merged

Fix CI failures #379

merged 2 commits into from
Jun 17, 2025

Conversation

willnet
Copy link
Member

@willnet willnet commented Jun 16, 2025

Fix #378

The test started to fail because the encoding of spaces was changed from "+" to "%20" by this change included in oauth2 v2.0.10. After updating the expected values in the test to use "%20", the test passed.

willnet added 2 commits June 16, 2025 18:51
Fix Sorcery#378

The test started to fail because the encoding of spaces was changed from "+" to "%20" by [this change](https://gitlab.com/oauth-xx/oauth2/-/merge_requests/633) included in oauth2 v2.0.10.
After updating the expected values in the test to use "%20", the test passed.
I also added the changes for Sorcery#377, which had not been included.
@willnet willnet requested a review from joshbuker June 16, 2025 09:58
@willnet
Copy link
Member Author

willnet commented Jun 16, 2025

@joshbuker If you have time, I'd appreciate it if you could review this.

@willnet
Copy link
Member Author

willnet commented Jun 16, 2025

It's a small change, so I was planning to merge it myself if I didn't hear back from anyone after a while. But I just noticed that the settings require one approval from a member to merge. So I'll wait for a review.

image

Copy link
Member

@joshbuker joshbuker left a comment

Choose a reason for hiding this comment

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

Changing the tests to make them pass is a bit of a red flag. Can you dig into why this change occurred before we update the test suite to match the results it's giving?

Copy link
Member

@joshbuker joshbuker left a comment

Choose a reason for hiding this comment

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

Ah, I missed your comment on it being from oauth 2.0.10.

@joshbuker
Copy link
Member

They say this is needed for Apple ID, but it's not clear if this is needed for other providers, or if it'll break other providers... Would be nice to test this in a staging environment to verify, but ultimately the oauth implementation we're using is horribly outdated and should be replaced with omniauth anyway. Can always roll it back if things break.

@willnet
Copy link
Member Author

willnet commented Jun 17, 2025

Would be nice to test this in a staging environment to verify

Sure, it would be nice to have an environment where we can actually try logging in with OAuth.
Even if it's difficult to support all providers (for example, Facebook login requires an annual application review),
I’d like to make it possible to test with the providers we can support.
I’ll create an issue for this.

@willnet
Copy link
Member Author

willnet commented Jun 17, 2025

I’ll go ahead and merge this PR for now.
If an issue is created later, I’ll handle it at that time.

@willnet willnet merged commit 0c92c46 into Sorcery:master Jun 17, 2025
15 checks passed
@willnet willnet deleted the fix-oauth2-encoding branch June 17, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The test related to OAuth is failing
2 participants