-
Notifications
You must be signed in to change notification settings - Fork 9
/
authorization_code_events.go
58 lines (55 loc) · 2.56 KB
/
authorization_code_events.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package goauth2
//go:generate go run github.com/inklabs/rangedb/gen/eventgenerator -id AuthorizationCode -aggregateType authorization-code
// RequestAccessTokenViaAuthorizationCodeGrant events
type AuthorizationCodeWasIssuedToUser struct {
AuthorizationCode string `json:"authorizationCode"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
ExpiresAt int64 `json:"expiresAt"`
Scope string `json:"scope"`
}
type AccessTokenWasIssuedToUserViaAuthorizationCodeGrant struct {
AuthorizationCode string `json:"authorizationCode"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
Scope string `json:"scope"`
ExpiresAt int64 `json:"expiresAt"`
}
type RefreshTokenWasIssuedToUserViaAuthorizationCodeGrant struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
UserID string `json:"userID"`
RefreshToken string `json:"refreshToken"`
Scope string `json:"scope"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationID struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationSecret struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToUnmatchedClientApplicationID struct {
AuthorizationCode string `json:"authorizationCode"`
RequestedClientID string `json:"requestedClientID"`
ActualClientID string `json:"actualClientID"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidClientApplicationRedirectURI struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
RedirectURI string `json:"redirectURI"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToInvalidAuthorizationCode struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToExpiredAuthorizationCode struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaAuthorizationCodeGrantWasRejectedDueToPreviouslyUsedAuthorizationCode struct {
AuthorizationCode string `json:"authorizationCode"`
ClientID string `json:"clientID"`
UserID string `json:"userID"`
}