Auth rebuild
This commit is contained in:
@@ -162,6 +162,7 @@ func (h HydraClaims) BuildConsentSession(clientID string, userId string, p *peer
|
||||
}
|
||||
|
||||
c.Session.AccessToken["peer_id"] = p.UUID
|
||||
c.Session.AccessToken["user_id"] = userId
|
||||
|
||||
c.Session.IDToken["user_id"] = userId
|
||||
c.Session.IDToken["peer_id"] = p.UUID
|
||||
@@ -172,6 +173,7 @@ func (h HydraClaims) BuildConsentSession(clientID string, userId string, p *peer
|
||||
logger.Error().Msg("Failed to get groups for user " + userId + ": " + err.Error())
|
||||
return c
|
||||
}
|
||||
c.Session.AccessToken["groups"] = groups
|
||||
c.Session.IDToken["groups"] = groups
|
||||
|
||||
roles, err := perms_connectors.KetoConnector{}.GetRoleByUser(userId)
|
||||
|
||||
Reference in New Issue
Block a user