Merge branch 'master' into master

pull/10616/head
Benjamin Schweizer 2018-02-20 09:52:34 +01:00 committed by GitHub
commit edc05d7409
1 changed files with 7 additions and 0 deletions

View File

@ -169,6 +169,13 @@ func (j *AuthMux) Callback() http.Handler {
}
}
group, err := j.Provider.Group(oauthClient)
if err != nil {
log.Error("Unable to get OAuth Group", err.Error())
http.Redirect(w, r, j.FailureURL, http.StatusTemporaryRedirect)
return
}
p := Principal{
Subject: id,
Issuer: j.Provider.Name(),