Skip to content
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

Add support for new OAuth parameters #531

Closed
bocops opened this issue Mar 11, 2025 · 0 comments · Fixed by #536
Closed

Add support for new OAuth parameters #531

bocops opened this issue Mar 11, 2025 · 0 comments · Fixed by #536

Comments

@bocops
Copy link
Collaborator

bocops commented Mar 11, 2025

With 4.3.0, PKCE parameters have been added to Mastodon's OAuth methods. Specifically:

  • GET /oauth/authorize
    • state
    • code_challenge
    • code_challenge_method
  • POST /oauth/token
    • code_verifier

These parameters should be supported.

bocops added a commit to bocops/bigbone that referenced this issue Mar 14, 2025
This adds parameters necessary for PKCE (Proof Key for Code Exchange) during OAuth authorization flow (see https://docs.joinmastodon.org/spec/oauth/#pkce). Specifically:

- adds parameters state, codeChallenge, codeChallengeMethod to getOAuthUrl()
- adds parameter codeVerifier to getUserAccessTokenWithAuthorizationCodeGrant()
- same for Rx methods
- modifies Kotlin+Java samples to make use of these parameters

Closes PattaFeuFeu#531.
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 a pull request may close this issue.

1 participant