cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Strava Custom Connector

Since PowerApps does not have a Strava connector (Strava the health tracking app), how can I build a custom connector for that? Strava uses OAuth 2.0

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Fbsx503 ,

Do you want to create custom connector based on Strava Rest API in canvas app?

 

Due to the Strava API use OAuth 2.0 as Authentication Way, so you need to register a application in your Strava Account. A registered application will be assigned a client ID and client secret. The secret is used for authentication and should never be shared.

More details about registering a app for accessing Strava API, please check the following article:

https://developers.strava.com/docs/getting-started/#account

 

I have made a test on my side, the screenshot as below:

3.JPG

 

4.JPG

Configure the Authentication way for your custom connector as above. Authorization Url field set to following:

https://www.strava.com/api/v3/oauth/authorize

Token Url field and Refresh Url field set to following:

https://www.strava.com/api/v3/oauth/token

then click "Create Connector" button to save your changes. After that, the 'Redirect Url' field value would be generated automatically. You need to copy the generated 'Redirect Url' value, and back to your registered Strava app, paste it to the "Authorization Callback Domain" field as below:

5.JPG

After that, you could go to the "Test" section to create a connection to this custom connector. You would be prompted to authorize the registered app to access your Strava API Resource on behalf of you.

 

In addition, you could also consider use the Bearer + Access Token within the 'Authorization' as HTTP Request Header to access your Strava Rest API resource. Then you need to configure your Authentication way as below:

6.JPG

After that, please go to "Test" part, create a connection to this custom connector, you would be prompted to provide a 'Authorization' value, on your side, you need to type the following value:

Bearer YourAccessToken

The 'Access Token' could be obtained from your registered app as below:

7.JPG

 So your Authorization value should be like below:

Bearer c46c18f85fffee601cd2677bf0c29833xxxxxxxx

 

 

Please try above solution, hopes it could solve your problem.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Super User III
Super User III

First you will need the documentation for the api for strava

 

there are step by step instructions here https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

 

And Keith Whatling has a really good video guide https://powerusers.microsoft.com/t5/Community-Video-Gallery/Basic-Custom-Connector-Creation-Google-B...

I've been through those documents. The problem is that they don't show how OAuth 2.0 works. I don't have much knowledge about such things. The real issue is filling the blanks of the URLs. Like I don't know what link should I put there. 

You will need to get that information from the Strava documentation

Community Support
Community Support

Hi @Fbsx503 ,

Do you want to create custom connector based on Strava Rest API in canvas app?

 

Due to the Strava API use OAuth 2.0 as Authentication Way, so you need to register a application in your Strava Account. A registered application will be assigned a client ID and client secret. The secret is used for authentication and should never be shared.

More details about registering a app for accessing Strava API, please check the following article:

https://developers.strava.com/docs/getting-started/#account

 

I have made a test on my side, the screenshot as below:

3.JPG

 

4.JPG

Configure the Authentication way for your custom connector as above. Authorization Url field set to following:

https://www.strava.com/api/v3/oauth/authorize

Token Url field and Refresh Url field set to following:

https://www.strava.com/api/v3/oauth/token

then click "Create Connector" button to save your changes. After that, the 'Redirect Url' field value would be generated automatically. You need to copy the generated 'Redirect Url' value, and back to your registered Strava app, paste it to the "Authorization Callback Domain" field as below:

5.JPG

After that, you could go to the "Test" section to create a connection to this custom connector. You would be prompted to authorize the registered app to access your Strava API Resource on behalf of you.

 

In addition, you could also consider use the Bearer + Access Token within the 'Authorization' as HTTP Request Header to access your Strava Rest API resource. Then you need to configure your Authentication way as below:

6.JPG

After that, please go to "Test" part, create a connection to this custom connector, you would be prompted to provide a 'Authorization' value, on your side, you need to type the following value:

Bearer YourAccessToken

The 'Access Token' could be obtained from your registered app as below:

7.JPG

 So your Authorization value should be like below:

Bearer c46c18f85fffee601cd2677bf0c29833xxxxxxxx

 

 

Please try above solution, hopes it could solve your problem.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (1,542)