MM-56752 (#26100)
* using token --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -958,7 +958,12 @@ func (a *App) SwitchEmailToOAuth(c request.CTX, w http.ResponseWriter, r *http.R
|
||||
stateProps["email"] = email
|
||||
|
||||
if service == model.UserAuthServiceSaml {
|
||||
return a.GetSiteURL() + "/login/sso/saml?action=" + model.OAuthActionEmailToSSO + "&email=" + utils.URLEncode(email), nil
|
||||
samlToken, samlErr := a.CreateSamlRelayToken(email)
|
||||
if samlErr != nil {
|
||||
return "", samlErr
|
||||
}
|
||||
|
||||
return a.GetSiteURL() + "/login/sso/saml?action=" + model.OAuthActionEmailToSSO + "&email_token=" + utils.URLEncode(samlToken.Token), nil
|
||||
}
|
||||
|
||||
authURL, err := a.GetAuthorizationCode(c, w, r, service, stateProps, "")
|
||||
|
||||
Ссылка в новой задаче
Block a user