-
Notifications
You must be signed in to change notification settings - Fork 9
/
client_application_events.go
38 lines (33 loc) · 1.31 KB
/
client_application_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
package goauth2
//go:generate go run github.com/inklabs/rangedb/gen/eventgenerator -id ClientID -aggregateType client-application
// OnBoardClientApplication Events
type ClientApplicationWasOnBoarded struct {
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
RedirectURI string `json:"redirectURI"`
UserID string `json:"userID"`
}
type OnBoardClientApplicationWasRejectedDueToUnAuthorizeUser struct {
ClientID string `json:"clientID"`
UserID string `json:"userID"`
}
type OnBoardClientApplicationWasRejectedDueToInsecureRedirectURI struct {
ClientID string `json:"clientID"`
RedirectURI string `json:"redirectURI"`
}
type OnBoardClientApplicationWasRejectedDueToInvalidRedirectURI struct {
ClientID string `json:"clientID"`
RedirectURI string `json:"redirectURI"`
}
// RequestAccessTokenViaClientCredentialsGrant Events
type AccessTokenWasIssuedToClientApplicationViaClientCredentialsGrant struct {
ClientID string `json:"clientID"`
ExpiresAt int64 `json:"expiresAt"`
Scope string `json:"scope"`
}
type RequestAccessTokenViaClientCredentialsGrantWasRejectedDueToInvalidClientApplicationID struct {
ClientID string `json:"clientID"`
}
type RequestAccessTokenViaClientCredentialsGrantWasRejectedDueToInvalidClientApplicationSecret struct {
ClientID string `json:"clientID"`
}