@@ -5,6 +5,35 @@ namespace ReactiveDomain.IdentityStorage.Messages
5
5
{
6
6
public class ClientMsgs
7
7
{
8
+ public class CreateClient : Command
9
+ {
10
+ public readonly Guid ClientId ;
11
+ public readonly Guid ApplicationId ;
12
+ public readonly string ClientName ;
13
+ public readonly string [ ] RedirectUris ;
14
+ public readonly string [ ] PostLogoutRedirectUris ;
15
+ public readonly string FrontChannelLogoutUri ;
16
+ public readonly string EncryptedClientSecret ;
17
+
18
+ public CreateClient (
19
+ Guid clientId ,
20
+ Guid applicationId ,
21
+ string clientName ,
22
+ string [ ] redirectUris ,
23
+ string [ ] postLogoutRedirectUris ,
24
+ string frontChannelLogoutUri ,
25
+ string encryptedClientSecret )
26
+ {
27
+ ClientId = clientId ;
28
+ ApplicationId = applicationId ;
29
+ ClientName = clientName ;
30
+ RedirectUris = redirectUris ;
31
+ PostLogoutRedirectUris = postLogoutRedirectUris ;
32
+ FrontChannelLogoutUri = frontChannelLogoutUri ;
33
+ EncryptedClientSecret = encryptedClientSecret ;
34
+ }
35
+ }
36
+
8
37
public class ClientCreated : Event
9
38
{
10
39
public readonly Guid ClientId ;
@@ -36,9 +65,21 @@ public ClientCreated(
36
65
FrontChannelLogoutUri = frontChannelLogoutUri ;
37
66
}
38
67
}
39
- public class ClientSecretAdded : Event
68
+
69
+ public class AddClientSecret : Command
40
70
{
71
+ public readonly Guid ClientId ;
72
+ public readonly string EncryptedClientSecret ;
73
+
74
+ public AddClientSecret ( Guid clientId , string encryptedClientSecret )
75
+ {
76
+ ClientId = clientId ;
77
+ EncryptedClientSecret = encryptedClientSecret ;
78
+ }
79
+ }
41
80
81
+ public class ClientSecretAdded : Event
82
+ {
42
83
public readonly Guid ClientId ;
43
84
public readonly string EncryptedClientSecret ;
44
85
@@ -48,6 +89,19 @@ public ClientSecretAdded(Guid clientId, string encryptedClientSecret)
48
89
EncryptedClientSecret = encryptedClientSecret ;
49
90
}
50
91
}
92
+
93
+ public class RemoveClientSecret : Command
94
+ {
95
+ public readonly Guid ClientId ;
96
+ public readonly string EncryptedClientSecret ;
97
+
98
+ public RemoveClientSecret ( Guid clientId , string encryptedClientSecret )
99
+ {
100
+ ClientId = clientId ;
101
+ EncryptedClientSecret = encryptedClientSecret ;
102
+ }
103
+ }
104
+
51
105
public class ClientSecretRemoved : Event
52
106
{
53
107
public readonly Guid ClientId ;
0 commit comments