#Baepsae

1 messages · Page 1 of 1 (latest)

keen creekBOT
foggy oriole
#

I guess all this depend on what kind of Stripe App you're building! Does it interact with third-party services outside of Stripe?

#

You don't need an OAuth provider/connection if your app simply reads data from the Stripe account(s)

fringe canopy
#

Hi @foggy oriole , thank you for the quick reply!
It will interact with our application, we will be reading data from our own application.

In our application, we have actually integrated with Stripe through the flow I linked here, which was pretty simple for me to understand.

Now when in Stripe App, I don't understand the oAuth provider thing.

The url provided by the docs to start the oAuth flow is this:

https://www.example.com/oauth2/authorize?response_type=code&client_id=${clientID}&redirect_uri=${getRedirectURL(mode)}&state=${state}&code_challenge=${challenge}&code_challenge_method=S256;

But I'm not really sure what is supposed to be instead of https://www.example.com

In the way we integrated with Stripe in our application previously it was like this:

https://connect.stripe.com/oauth/authorize?response_type=code&client_id={{CLIENT_ID}}&scope=read_write&redirect_uri=https://sub2.example.com

But I guess it's different since with this previous way we read data from Stripe and not the opposite

foggy oriole
#

The assumption here is that your application/service has an OAuth integration that the Stripe App can utilise to can access to the service

#

So example.com would become yourproduct.com

fringe canopy
#

Thank you @foggy oriole, things are getting clearer now.

So, if our application is using Amplify/AWS Cognito for authorization, can we have this Stripe App just redirect to our application for auth?

And when we redirect back to Stripe App, what do we need to include in that Redirect + where to include it?

foggy oriole
#

Hmm, I'm not sure if/how that kind of auth flow would work. You'd need to test it

#

Generally you'd just POST the credentials from the Stripe App to your API/service and get an API token back that the Stripe App can use