Add Generic OAuth Provider (#138)

This commit is contained in:
Thom Seddon
2020-06-29 21:04:42 +01:00
committed by GitHub
parent 870724c994
commit 9e5994b959
7 changed files with 285 additions and 4 deletions

View File

@ -366,6 +366,11 @@ func TestConfigGetProvider(t *testing.T) {
assert.Nil(err)
assert.Equal(&c.Providers.OIDC, p)
// Should be able to get "generic-oauth" provider
p, err = c.GetProvider("generic-oauth")
assert.Nil(err)
assert.Equal(&c.Providers.GenericOAuth, p)
// Should catch unknown provider
p, err = c.GetProvider("bad")
if assert.Error(err) {