mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 03:40:01 -06:00
Adds JSON tags to PII report.
This will make the JSON export look a bit prettier.
This commit is contained in:
@@ -26,8 +26,8 @@ var userActionsToString = map[UserAction]string{
|
||||
|
||||
// PIIReport is a structure of all the PersonalIdentifiableInformation contained in keycloak.
|
||||
type PIIReport struct {
|
||||
UserData *libregraph.User
|
||||
Credentials []*gocloak.CredentialRepresentation
|
||||
UserData *libregraph.User `json:"user_data,omitempty"`
|
||||
Credentials []*gocloak.CredentialRepresentation `json:"credentials,omitempty"`
|
||||
}
|
||||
|
||||
// Client represents a keycloak client.
|
||||
|
||||
@@ -81,7 +81,6 @@ func (g Graph) GatherPersonalData(usr *user.User, ref *provider.Reference, token
|
||||
ctx, err := utils.ImpersonateUser(usr, g.gatewayClient, g.config.MachineAuthAPIKey)
|
||||
if err != nil {
|
||||
g.logger.Error().Err(err).Str("userID", usr.GetId().GetOpaqueId()).Msg("cannot impersonate user")
|
||||
|
||||
}
|
||||
// create data
|
||||
data := make(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user