mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
SAML: Show SAML login button even if OAuth is disabled (#17993)
* Move the SAML button outside of the oauth div * Don't attempt to search cookies with an empty name
This commit is contained in:
@@ -182,6 +182,10 @@ func initContextWithBasicAuth(ctx *models.ReqContext, orgId int64) bool {
|
||||
}
|
||||
|
||||
func initContextWithToken(authTokenService models.UserTokenService, ctx *models.ReqContext, orgID int64) bool {
|
||||
if setting.LoginCookieName == "" {
|
||||
return false
|
||||
}
|
||||
|
||||
rawToken := ctx.GetCookie(setting.LoginCookieName)
|
||||
if rawToken == "" {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user