How can I use firebase as an idP when authenticating customers logging into a Shopify store.
I want users to sign up on my web app for an account.
Then when they make it to my Shopify store for them to have an option to sign into the store using my web app credentials.
Similar to how you can add a ‘sign in with Google’ option.
How do I create that SSO using Shopify as the service provider and firebase as the idP so that my users on my web app can also sign into my Shopify app?
2
Answers
Very good question.
Once connected with firebase you have to add a token (http header authorization) to each request to shopify API.
You have to find a way to set the public key of your firebase project on your shopify server.
That permit shopify server to decode and use the firebase token
Shopify should have an API documentation to exhange public/private key with another auth provider. (firebase auth, auth0)
Note that SSO only works if your Shopify store is on the Plus plan. Any other attempts to do SSO with Shopify will almost certainly fail, so just to save you the time and effort in case you missed that memo.