Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase authentication with Strava provider

I would like people to sign in with there Strava account (strava is a cycling/running platform)

Firebase has some default authentication Sign-in providers like Google, twitter etc. but no Strava. Is there any other way I can authenticate users via there Strava account in Firebase?

My project is in AngularJS

Strava authentication API documents

like image 968
user1242574 Avatar asked Oct 18 '22 00:10

user1242574


1 Answers

Currently there is a limited list of OAuth providers supported by Firebase Authentication.

If you just want people to be Authenticated against your application I would suggest to implement the OAuth flow by yourself in your client application.

If you also want to store some user state and therefore want to use Firebase you could create a Firebase User Account for every ID Token you receive from your Oauth-Client. People can sign up /sign in to your Firebase backend by providing their ID Token and exchanging it against a Firebase Access token.

Important: Make sure to verify the Strava Id/Access token in some way. Simplest way would be to call the Strava API and see if the token gets accepted.

like image 58
Philipp Avatar answered Oct 21 '22 05:10

Philipp