From 99637282817bf40198c0ef6e9900f8f2050d5a49 Mon Sep 17 00:00:00 2001 From: Mattias Appelgren Date: Thu, 4 Feb 2021 21:55:44 +0000 Subject: [PATCH] endpoints: Add Strava endpoint As per the Strava API auth docs: http://developers.strava.com/docs/authentication/ Change-Id: Ibf6fcca193a1b63bf86830b669849653774a9df9 GitHub-Last-Rev: 296e91e1f25c75d26a23f0873df000678c4f43e3 GitHub-Pull-Request: golang/oauth2#473 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/289829 Reviewed-by: Brad Fitzpatrick Trust: Brad Fitzpatrick Trust: Heschi Kreinick --- endpoints/endpoints.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index 3b7f32af..6e85ff38 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -167,6 +167,12 @@ var StackOverflow = oauth2.Endpoint{ TokenURL: "https://stackoverflow.com/oauth/access_token", } +// Strava is the endpoint for Strava. +var Strava = oauth2.Endpoint{ + AuthURL: "https://www.strava.com/oauth/authorize", + TokenURL: "https://www.strava.com/oauth/token", +} + // Twitch is the endpoint for Twitch. var Twitch = oauth2.Endpoint{ AuthURL: "https://id.twitch.tv/oauth2/authorize",