fix cli
This commit is contained in:
parent
2e6d1f83f7
commit
87b30dcd66
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ func codeFlow(provider rp.RelayingParty, callbackPath string, port string) *oidc
|
||||||
|
|
||||||
getToken, setToken := getAndSetTokens()
|
getToken, setToken := getAndSetTokens()
|
||||||
|
|
||||||
state := uuid.New().String()
|
state := func() string {
|
||||||
|
return uuid.New().String()
|
||||||
|
}
|
||||||
http.Handle(loginPath, rp.AuthURLHandler(state, provider))
|
http.Handle(loginPath, rp.AuthURLHandler(state, provider))
|
||||||
|
|
||||||
marshal := func(w http.ResponseWriter, r *http.Request, tokens *oidc.Tokens, state string) {
|
marshal := func(w http.ResponseWriter, r *http.Request, tokens *oidc.Tokens, state string) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue