-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevents.go
More file actions
21 lines (18 loc) · 959 Bytes
/
events.go
File metadata and controls
21 lines (18 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package auth
// Event type constants for auth module events.
// Following CloudEvents specification reverse domain notation.
const (
// Token events
EventTypeTokenGenerated = "com.modular.auth.token.generated" // #nosec G101 - not a credential
EventTypeTokenValidated = "com.modular.auth.token.validated" // #nosec G101 - not a credential
EventTypeTokenExpired = "com.modular.auth.token.expired" // #nosec G101 - not a credential
EventTypeTokenRefreshed = "com.modular.auth.token.refreshed" // #nosec G101 - not a credential
// Session events
EventTypeSessionCreated = "com.modular.auth.session.created"
EventTypeSessionAccessed = "com.modular.auth.session.accessed"
EventTypeSessionExpired = "com.modular.auth.session.expired"
EventTypeSessionDestroyed = "com.modular.auth.session.destroyed"
// OAuth2 events
EventTypeOAuth2AuthURL = "com.modular.auth.oauth2.auth_url"
EventTypeOAuth2Exchange = "com.modular.auth.oauth2.exchange"
)