Merge pull request #14995 from bergquist/token_oauth

Stores hashed state code in cookie for OAuth logins.
This commit is contained in:
Carl Bergquist
2019-01-23 10:39:12 +01:00
committed by GitHub
2 changed files with 34 additions and 7 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func (s *UserAuthTokenServiceImpl) InitContextWithToken(ctx *models.ReqContext,
func (s *UserAuthTokenServiceImpl) writeSessionCookie(ctx *models.ReqContext, value string, maxAge int) {
if setting.Env == setting.DEV {
ctx.Logger.Info("new token", "unhashed token", value, "cookieName", s.Cfg.LoginCookieName, "secure", s.Cfg.LoginCookieSecure)
ctx.Logger.Info("new token", "unhashed token", value)
}
ctx.Resp.Header().Del("Set-Cookie")