-
Notifications
You must be signed in to change notification settings - Fork 9
/
refresh_token_events.go
55 lines (52 loc) · 2.08 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
package goauth2
//go:generate go run github.com/inklabs/rangedb/gen/eventgenerator -id RefreshToken -aggregateType refresh-token
// RequestAccessTokenViaRefreshTokenGrant Events
type RefreshTokenWasIssuedToUser struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
Scope string `json:"scope"`
}
type RefreshTokenWasRevokedFromUser struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
}
type AccessTokenWasIssuedToUserViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
Scope string `json:"scope"`
ExpiresAt int64 `json:"expiresAt"`
}
type RefreshTokenWasIssuedToUserViaRefreshTokenGrant struct {
RefreshToken string `json:"refreshToken"`
UserID string `json:"userID"`
ClientID string `json:"clientID"`
NextRefreshToken string `json:"nextRefreshToken"`
Scope string `json:"scope"`
}
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"`
ClientID string `json:"clientID"`
}
type AccessTokenWasRevokedDueToPreviouslyUsedRefreshToken struct {
RefreshToken string `json:"refreshToken"`
}