Commit dff66559 by m-pavel Committed by Torkel Ödegaard

Use URLEncoding instead of StdEncoding to be sure state value will be corectly decoded (#10512)

parent baffdb15
......@@ -35,7 +35,7 @@ var (
func GenStateString() string {
rnd := make([]byte, 32)
rand.Read(rnd)
return base64.StdEncoding.EncodeToString(rnd)
return base64.URLEncoding.EncodeToString(rnd)
}
func OAuthLogin(ctx *middleware.Context) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment