Add tests for OIDC

This commit is contained in:
TwiN committed 2022-01-02 21:14:01 -05:00
1 parent 9f8f7bb45e
commit dd5e3ee7ee
10 files changed
+207 -107

No files matched your search

-3
View File
@@ -7,7 +7,6 @@ import (
"strings"
"time"
"github.com/TwiN/gocache"
"github.com/coreos/go-oidc/v3/oidc"
"github.com/google/uuid"
"golang.org/x/oauth2"
@@ -140,5 +139,3 @@ func (c *OIDCConfig) setSessionCookie(w http.ResponseWriter, idToken *oidc.IDTok
SameSite: http.SameSiteStrictMode,
})
}
var sessions = gocache.NewCache()