1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

keycloak logout and auth provider switching

This commit is contained in:
Harvey Kandola 2017-03-20 13:54:53 +00:00
parent 8c062d592a
commit 0f9d673eb5
12 changed files with 78 additions and 45 deletions

View file

@ -112,12 +112,6 @@ func AuthenticateKeycloak(w http.ResponseWriter, r *http.Request) {
if err == sql.ErrNoRows {
log.Info("keycloak add user " + a.Email + " @ " + a.Domain)
p.Context.Transaction, err = request.Db.Beginx()
if err != nil {
writeTransactionError(w, method, err)
return
}
user = entity.User{}
user.Firstname = a.Firstname
user.Lastname = a.Lastname