forked from inklabs/goauth2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
refresh_token_events.go
62 lines (60 loc) · 2.47 KB
/
refresh_token_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
59
60
61
62
package goauth2
//go:generate go run gen/eventgenerator/main.go -package goauth2 -id RefreshToken -methodName EventType -aggregateType refresh-token -inFile refresh_token_events.go -outFile refresh_token_events_gen.go
// RequestAccessTokenViaRefreshTokenGrant Events
type RefreshTokenWasIssuedToUser struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
Scope string `json:"scope"`
}
type RefreshTokenWasIssuedToClientApplication struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
}
type RefreshTokenWasRevoked struct {
RefreshToken string `json:"refreshToken"`
}
type AccessTokenWasIssuedToUserViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
}
type AccessTokenWasIssuedToClientApplicationViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
}
type RefreshTokenWasIssuedToUserViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
NextRefreshToken string `json:"nextRefreshToken"`
Scope string `json:"scope"`
}
type RefreshTokenWasIssuedToClientApplicationViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
NextRefreshToken string `json:"nextRefreshToken"`
}
type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidRefreshToken struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidScope struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
Scope string `json:"scope"`
RequestedScope string `json:"requestedScope"`
}
type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToInvalidClientApplicationCredentials struct {
RefreshToken string `json:"refreshToken"`
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToPreviouslyUsedRefreshToken struct {
RefreshToken string `json:"refreshToken"`
}
type RequestAccessTokenViaRefreshTokenGrantWasRejectedDueToRevokedRefreshToken struct {
RefreshToken string `json:"refreshToken"`
}
type AccessTokenWasRevokedDueToPreviouslyUsedRefreshToken struct {
RefreshToken string `json:"refreshToken"`
}