Implement strava oauth2 as new auth provider

This commit is contained in:
szsascha
2022-12-31 01:21:41 +01:00
parent 8f6cb5ad2d
commit d710446c71
35 changed files with 137 additions and 34 deletions
+9
View File
@@ -108,4 +108,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Twitch); !ok {
t.Error("Expected to be instance of *auth.Twitch")
}
// strava
p, err = auth.NewProviderByName(auth.NameStrava)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Strava); !ok {
t.Error("Expected to be instance of *auth.Strava")
}
}