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

feat: add form_post response mode support for Apple OAuth #85

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Adds support for form_post response mode in the OAuth2 adapter, required by Apple sign-in.

Changes:

  • Extend OAuth2 adapter to support form_post response mode
  • Add POST callback handler for form data
  • Include first-time user info in tokenset
  • Make form_post support generic for other providers

Fixes #82

Link to Devin run: https://app.devin.ai/sessions/644d0dad073949e1af4a56c0819bc68a

- Extend OAuth2 adapter to support form_post response mode
- Add POST callback handler for form data
- Include first-time user info in tokenset
- Make form_post support generic for other providers

Fixes #82

Co-Authored-By: [email protected] <[email protected]>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

Copy link

changeset-bot bot commented Dec 17, 2024

🦋 Changeset detected

Latest commit: 6661578

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@openauthjs/openauth Patch
jwt-api Patch
nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@xinha-sh
Copy link
Contributor

xinha-sh commented Dec 22, 2024

this PR isn't required simply modify query and it'll work

apple: AppleOidcAdapter({
      clientID: Resource.AppleAppId.value,
      query: {
        response_mode: "form_post",
        response_type: "code id_token",
      },
      scopes: ["email", "name"],
    }),
    ```

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.

Support response_mode=form_post for Apple adapter
1 participant