authenticate: save oauth2 tokens to cache (#698)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2020-05-18 10:45:07 -07:00 committed by Travis Groth
parent ef399380b7
commit 666fd6aa35
31 changed files with 1127 additions and 1061 deletions

View file

@ -91,6 +91,10 @@ func TestNew(t *testing.T) {
badGRPCConn.CacheURL = nil
badGRPCConn.CookieName = "D"
emptyProviderURL := newTestOptions(t)
emptyProviderURL.Provider = "oidc"
emptyProviderURL.ProviderURL = ""
tests := []struct {
name string
opts *config.Options
@ -103,6 +107,7 @@ func TestNew(t *testing.T) {
{"bad cookie name", badCookieName, true},
{"bad provider", badProvider, true},
{"bad cache url", badGRPCConn, true},
{"empty provider url", emptyProviderURL, true},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {