This commit is contained in:
Livio Amstutz 2020-09-15 08:10:08 +02:00
parent 2e6d1f83f7
commit 87b30dcd66

View file

@ -56,7 +56,9 @@ func codeFlow(provider rp.RelayingParty, callbackPath string, port string) *oidc
getToken, setToken := getAndSetTokens()
state := uuid.New().String()
state := func() string {
return uuid.New().String()
}
http.Handle(loginPath, rp.AuthURLHandler(state, provider))
marshal := func(w http.ResponseWriter, r *http.Request, tokens *oidc.Tokens, state string) {