Skip to content

🐛 Bug Report: Stripe OAuth2 sign-in fails because the token exchange never sends the secret key #15368

Closed

Description

@adityaoberai

Summary

Sign in with Stripe can't complete. Appwrite\Auth\OAuth2\Stripe::getTokens() posts the authorization code to https://connect.stripe.com/oauth/token without authenticating, so Stripe rejects the code exchange. The API Secret Key saved in the provider settings is never sent.

Details

Suggested fix

Authenticate the token and refresh requests with the stored secret key, for example Authorization: Bearer <secret key>.

Notes

This comes from reading the adapter against Stripe's OAuth reference. I didn't reproduce it with live Stripe credentials. It turned up while adding OAuth providers to the appwrite.io integrations catalog, and the Stripe catalog page is held back until this is fixed.

cc @adityaoberai

Activity

  1. added
    bug
    product / auth
    on Nov 6, 2026
  2. RealAdii commented on Nov 8, 2026

    @RealAdii

    i'd like to take this on if it is still available. could this issue be assigned to me?

    my proposed scope is authenticating the token-exchange and refresh requests with the configured secret, with mocked-request regression tests for both flows, refresh-token fallback, and provider errors. the report and current adapter suggest the missing authentication, but i have not reproduced this with live stripe credentials.

    i plan to use ai assistance and follow the project's review and testing requirements. i'll wait for assignment before implementation and follow up through the prescribed discord process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugproduct / auth

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions