#chiayi

1 messages · Page 1 of 1 (latest)

sick ridgeBOT
indigo peak
#

Sure. Will your app connect to third-party services to source data?

hollow saffron
#

yes

indigo peak
#

Do those third-party services support OAuth?

hollow saffron
#

not sure what is oauth, but it is a webapp using firebase for authentication and users get to see analytics on the webapp

indigo peak
#

The idea is your establish an OAuth connection for your app user between the third-party and your Stripe App, then you can use that token to make API requests to that third-party

indigo peak
#

In that case, how do users authenticate with your service?

hollow saffron
#
  1. stripe user gets redirected to my company's webapp (which is a third party service in this scenario) via our stripe app
  2. user signs up on webapp via firebase authentication on backend
indigo peak
#

Ok, so I'd guess that Firebase returns a token that your services uses to authenticate requests to its backend/API?

hollow saffron
#

yes

indigo peak
#

Then can be used to make API requests as you need to your backend

hollow saffron
#

do i create a function on webapp backend to store the token?

#

| can be used to make API requests as you need to your backend

meaning stripe app can use this token to make API requests to the webapp backend?

indigo peak
indigo peak
hollow saffron
indigo peak
#

I don't know, do they support OAuth?

#

If they do, great! Otherwise you can just authenticate your users via credentials in the Stripe App – that's permitted too

hollow saffron
#

yeah firebase supports oauth

so to summarise an oauth flow is just a way for us to display data only to users known to us is that correct?

indigo peak
#

Exactly. It's a way for your Stripe App users to connect to their account on your backend, and then authenticate requests to that backend so the Stripe App can pull their data

hollow saffron
#

thanks alot!

indigo peak
#

np

hollow saffron
indigo peak
#

You should be able to use both in conjunction yes. You would pass the token from the OAuth connection in the headers of your requests to your backend too

hollow saffron
#

also if I save the token in user scope, the stripe app installed in both corgilabs.ai and CorgiAI .Inc will be able to access it?