-
Notifications
You must be signed in to change notification settings - Fork 9
/
resource_owner_commands.go
41 lines (39 loc) · 1.39 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
40
41
package goauth2
//go:generate go run github.com/inklabs/rangedb/gen/commandgenerator -id UserID -aggregateType resource-owner
type OnBoardUser struct {
UserID string `json:"userID"`
Username string `json:"username"`
Password string `json:"password"`
GrantingUserID string `json:"grantingUserID"`
}
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"`
Scope string `json:"scope"`
}