Auth Proxy: Respect auto_sign_up setting (#17843)
* Add test for disabled auth proxy auto signup option * Set correctly auth proxy auto signup
This commit is contained in:
committed by
GitHub
parent
c2affdee1e
commit
f3f03ceb6a
@@ -263,7 +263,7 @@ func (auth *AuthProxy) LoginViaHeader() (int64, error) {
|
||||
|
||||
upsert := &models.UpsertUserCommand{
|
||||
ReqContext: auth.ctx,
|
||||
SignupAllowed: true,
|
||||
SignupAllowed: setting.AuthProxyAutoSignUp,
|
||||
ExternalUser: extUser,
|
||||
}
|
||||
err := bus.Dispatch(upsert)
|
||||
|
||||
Reference in New Issue
Block a user