Auth rebuild

This commit is contained in:
mr
2026-04-02 09:59:53 +02:00
parent 284667e95c
commit bc7f0be53b

View File

@@ -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)