func TestGoogle(t *testing.T) { p, err := NewProvider("google", "clientid", "clientsecret", "") if err != nil { t.Fatalf("Unexpected error: %v", err) } _ = external.Provider(p) }
func TestOpenID(t *testing.T) { p, err := NewProvider("openid", nil, Config{ ClientID: "foo", ClientSecret: "secret", AuthorizeURL: "https://foo", TokenURL: "https://foo", Scopes: []string{"openid"}, IDClaims: []string{"sub"}, }) if err != nil { t.Fatalf("Unexpected error: %v", err) } _ = external.Provider(p) }
func TestGitHub(t *testing.T) { _ = external.Provider(NewProvider("github", "clientid", "clientsecret")) }