-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove sensitive information from events
- Loading branch information
Showing
12 changed files
with
98 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/ApiResource/ApiSecretAddedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.ApiResource | ||
{ | ||
public class ApiSecretAddedEvent : AuditEvent | ||
{ | ||
public ApiSecretsDto ApiSecret { get; set; } | ||
public string Type { get; set; } | ||
|
||
public ApiSecretAddedEvent(ApiSecretsDto apiSecret) | ||
public DateTime? Expiration { get; set; } | ||
|
||
public int ApiResourceId { get; set; } | ||
|
||
public ApiSecretAddedEvent(int apiResourceId, string type, DateTime? expiration) | ||
{ | ||
ApiSecret = apiSecret; | ||
ApiResourceId = apiResourceId; | ||
Type = type; | ||
Expiration = expiration; | ||
} | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/ApiResource/ApiSecretDeletedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.ApiResource | ||
{ | ||
public class ApiSecretDeletedEvent : AuditEvent | ||
{ | ||
public ApiSecretsDto ApiSecret { get; set; } | ||
public int ApiResourceId { get; set; } | ||
|
||
public ApiSecretDeletedEvent(ApiSecretsDto apiSecret) | ||
public int ApiSecretId { get; set; } | ||
|
||
public ApiSecretDeletedEvent(int apiResourceId, int apiSecretId) | ||
{ | ||
ApiSecret = apiSecret; | ||
ApiResourceId = apiResourceId; | ||
ApiSecretId = apiSecretId; | ||
} | ||
} | ||
} |
19 changes: 14 additions & 5 deletions
19
...Skoruba.IdentityServer4.Admin.BusinessLogic/Events/ApiResource/ApiSecretRequestedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.ApiResource | ||
{ | ||
public class ApiSecretRequestedEvent : AuditEvent | ||
{ | ||
public ApiSecretsDto ApiSecrets { get; set; } | ||
public int ApiResourceId { get; set; } | ||
|
||
public ApiSecretRequestedEvent(ApiSecretsDto apiSecrets) | ||
public int ApiSecretId { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public DateTime? Expiration { get; set; } | ||
|
||
public ApiSecretRequestedEvent(int apiResourceId, int apiSecretId, string type, DateTime? expiration) | ||
{ | ||
ApiSecrets = apiSecrets; | ||
ApiResourceId = apiResourceId; | ||
ApiSecretId = apiSecretId; | ||
Type = type; | ||
Expiration = expiration; | ||
} | ||
} | ||
} |
15 changes: 10 additions & 5 deletions
15
...koruba.IdentityServer4.Admin.BusinessLogic/Events/ApiResource/ApiSecretsRequestedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using System.Collections.Generic; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.ApiResource | ||
{ | ||
public class ApiSecretsRequestedEvent : AuditEvent | ||
{ | ||
public ApiSecretsDto ApiSecrets { get; set; } | ||
public int ApiResourceId { get; set; } | ||
|
||
public ApiSecretsRequestedEvent(ApiSecretsDto apiSecrets) | ||
public List<(int apiSecretId, string type, DateTime? expiration)> Secrets { get; set; } | ||
|
||
|
||
public ApiSecretsRequestedEvent(int apiResourceId, List<(int apiSecretId, string type, DateTime? expiration)> secrets) | ||
{ | ||
ApiSecrets = apiSecrets; | ||
ApiResourceId = apiResourceId; | ||
Secrets = secrets; | ||
} | ||
} | ||
} |
16 changes: 11 additions & 5 deletions
16
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Client/ClientSecretAddedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.Client | ||
{ | ||
public class ClientSecretAddedEvent : AuditEvent | ||
{ | ||
public ClientSecretsDto ClientSecret { get; set; } | ||
public string Type { get; set; } | ||
|
||
public ClientSecretAddedEvent(ClientSecretsDto clientSecret) | ||
public DateTime? Expiration { get; set; } | ||
|
||
public int ClientId { get; set; } | ||
|
||
public ClientSecretAddedEvent(int clientId, string type, DateTime? expiration) | ||
{ | ||
ClientSecret = clientSecret; | ||
ClientId = clientId; | ||
Type = type; | ||
Expiration = expiration; | ||
} | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Client/ClientSecretDeletedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.Client | ||
{ | ||
public class ClientSecretDeletedEvent : AuditEvent | ||
{ | ||
public ClientSecretsDto ClientSecret { get; set; } | ||
public int ClientId { get; set; } | ||
|
||
public ClientSecretDeletedEvent(ClientSecretsDto clientSecret) | ||
public int ClientSecretId { get; set; } | ||
|
||
public ClientSecretDeletedEvent(int clientId, int clientSecretId) | ||
{ | ||
ClientSecret = clientSecret; | ||
ClientId = clientId; | ||
ClientSecretId = clientSecretId; | ||
} | ||
} | ||
} |
19 changes: 14 additions & 5 deletions
19
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Client/ClientSecretRequestedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.Client | ||
{ | ||
public class ClientSecretRequestedEvent : AuditEvent | ||
{ | ||
public ClientSecretsDto ClientSecrets { get; set; } | ||
public int ClientId { get; set; } | ||
|
||
public ClientSecretRequestedEvent(ClientSecretsDto clientSecrets) | ||
public int ClientSecretId { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public DateTime? Expiration { get; set; } | ||
|
||
public ClientSecretRequestedEvent(int clientId, int clientSecretId, string type, DateTime? expiration) | ||
{ | ||
ClientSecrets = clientSecrets; | ||
ClientId = clientId; | ||
ClientSecretId = clientSecretId; | ||
Type = type; | ||
Expiration = expiration; | ||
} | ||
} | ||
} |
14 changes: 9 additions & 5 deletions
14
src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Client/ClientSecretsRequestedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
using Skoruba.AuditLogging.Events; | ||
using Skoruba.IdentityServer4.Admin.BusinessLogic.Dtos.Configuration; | ||
using System; | ||
using System.Collections.Generic; | ||
using Skoruba.AuditLogging.Events; | ||
|
||
namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Events.Client | ||
{ | ||
public class ClientSecretsRequestedEvent : AuditEvent | ||
{ | ||
public ClientSecretsDto ClientSecrets { get; set; } | ||
public int ClientId { get; set; } | ||
|
||
public ClientSecretsRequestedEvent(ClientSecretsDto clientSecrets) | ||
public List<(int clientSecretId, string type, DateTime? expiration)> Secrets { get; set; } | ||
|
||
public ClientSecretsRequestedEvent(int clientId, List<(int clientSecretId, string type, DateTime? expiration)> secrets) | ||
{ | ||
ClientSecrets = clientSecrets; | ||
ClientId = clientId; | ||
Secrets = secrets; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters