mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
authenticate: save oauth2 tokens to cache (#698)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
ef399380b7
commit
666fd6aa35
31 changed files with 1127 additions and 1061 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue