cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fbsx503
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
v-xida-msft
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

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

v-xida-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,153)