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

@ -316,6 +316,11 @@ func TestMakeState(t *testing.T) {
p2 := provider.OIDC{}
state = MakeState(r, &p2, "nonce")
assert.Equal("nonce:oidc:http://example.com/hello", state)
// Test with Generic OAuth
p3 := provider.GenericOAuth{}
state = MakeState(r, &p3, "nonce")
assert.Equal("nonce:generic-oauth:http://example.com/hello", state)
}
func TestAuthNonce(t *testing.T) {