Skip to content

Conversation

ThisIsMissEm
Copy link
Contributor

This pull request introduces a new optional environment variable of OIDC_USE_PKCE whose value must be "true" for PKCE to be enabled.

Since there's only two code_challenge_methods, and plain should not be used, and OmniAuth uses S256 by default, we only support enabling or disabling PKCE. It is disabled by default.

This was requested by @erlend-sh by accident on #30329 where he thought that pull request affected SSO, when it actually only affected our OAuth setup for API access. (at least, I think that's what happened, correct me if I'm wrong).

This is only a binary option, since there's only two code_challenge_methods, and plain should not be used, and OmniAuth uses S256 by default
@ThisIsMissEm
Copy link
Contributor Author

@oneiros any thoughts on how we could add test coverage to SSO? I don't think it's currently covered at all really.

@ThisIsMissEm
Copy link
Contributor Author

I need to rebase this branch (but it doesn't appear to have conflicts), docs are probably blocked on mastodon/documentation#1301

@renchap renchap requested a review from a team August 10, 2024 12:41
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Aug 12, 2024
Merged via the queue into mastodon:main with commit a1f723a Aug 12, 2024
29 checks passed
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
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.

3 participants