Compare commits
No commits in common. "1f39df281d971deb843342d3b7f24679b4e33a66" and "7974b78b6673d4cc31145d72629b650893291022" have entirely different histories.
1f39df281d
...
7974b78b66
7
main.go
7
main.go
|
@ -728,7 +728,6 @@ func main() {
|
||||||
codemethod := c.Request.URL.Query().Get("code_challenge_method")
|
codemethod := c.Request.URL.Query().Get("code_challenge_method")
|
||||||
redirect_uri := c.Request.URL.Query().Get("redirect_uri")
|
redirect_uri := c.Request.URL.Query().Get("redirect_uri")
|
||||||
state := c.Request.URL.Query().Get("state")
|
state := c.Request.URL.Query().Get("state")
|
||||||
nonce := c.Request.URL.Query().Get("nonce")
|
|
||||||
|
|
||||||
userid, norows := get_user_from_session(secretKey)
|
userid, norows := get_user_from_session(secretKey)
|
||||||
|
|
||||||
|
@ -768,10 +767,6 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if nonce == "" {
|
|
||||||
nonce = genSalt(512)
|
|
||||||
}
|
|
||||||
|
|
||||||
datatemplate := jwt.MapClaims{
|
datatemplate := jwt.MapClaims{
|
||||||
"sub": username,
|
"sub": username,
|
||||||
"iss": "https://auth.hectabit.org",
|
"iss": "https://auth.hectabit.org",
|
||||||
|
@ -781,7 +776,7 @@ func main() {
|
||||||
"iat": time.Now().Unix(),
|
"iat": time.Now().Unix(),
|
||||||
"auth_time": time.Now().Unix(),
|
"auth_time": time.Now().Unix(),
|
||||||
"session": secretKey,
|
"session": secretKey,
|
||||||
"nonce": nonce,
|
"nonce": genSalt(512),
|
||||||
}
|
}
|
||||||
|
|
||||||
datatemplate2 := jwt.MapClaims{
|
datatemplate2 := jwt.MapClaims{
|
||||||
|
|
Reference in New Issue