forked from inklabs/goauth2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresource_owner_commands.go
39 lines (37 loc) · 1.38 KB
/
resource_owner_commands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package goauth2
//go:generate go run gen/eventgenerator/main.go -package goauth2 -id UserID -methodName CommandType -aggregateType resource-owner -inFile resource_owner_commands.go -outFile resource_owner_commands_gen.go
type OnBoardUser struct {
UserID string `json:"userID"`
Username string `json:"username"`
Password string `json:"password"`
}
type GrantUserAdministratorRole struct {
UserID string `json:"userID"`
GrantingUserID string `json:"grantingUserID"`
}
type AuthorizeUserToOnBoardClientApplications struct {
UserID string `json:"userID"`
AuthorizingUserID string `json:"authorizingUserID"`
}
type RequestAccessTokenViaImplicitGrant struct {
UserID string `json:"userID"`
ClientID string `json:"clientID"`
RedirectUri string `json:"redirectUri"`
Username string `json:"username"`
Password string `json:"password"`
}
type RequestAccessTokenViaROPCGrant struct {
UserID string `json:"userID"`
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
Username string `json:"username"`
Password string `json:"password"`
Scope string `json:"scope"`
}
type RequestAuthorizationCodeViaAuthorizationCodeGrant struct {
UserID string `json:"userID"`
ClientID string `json:"clientID"`
RedirectUri string `json:"redirectUri"`
Username string `json:"username"`
Password string `json:"password"`
}