Compare commits

..

No commits in common. "1f39df281d971deb843342d3b7f24679b4e33a66" and "7974b78b6673d4cc31145d72629b650893291022" have entirely different histories.

1 changed files with 1 additions and 6 deletions

View File

@ -728,7 +728,6 @@ func main() {
codemethod := c.Request.URL.Query().Get("code_challenge_method")
redirect_uri := c.Request.URL.Query().Get("redirect_uri")
state := c.Request.URL.Query().Get("state")
nonce := c.Request.URL.Query().Get("nonce")
userid, norows := get_user_from_session(secretKey)
@ -768,10 +767,6 @@ func main() {
return
}
if nonce == "" {
nonce = genSalt(512)
}
datatemplate := jwt.MapClaims{
"sub": username,
"iss": "https://auth.hectabit.org",
@ -781,7 +776,7 @@ func main() {
"iat": time.Now().Unix(),
"auth_time": time.Now().Unix(),
"session": secretKey,
"nonce": nonce,
"nonce": genSalt(512),
}
datatemplate2 := jwt.MapClaims{