Skip to content

Commit

Permalink
Add authentication events (#317)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Dzwonczyk <9063128+mattgd@users.noreply.github.com>
  • Loading branch information
LauraBeatris and mattgd authored May 17, 2024
1 parent 956eeb3 commit 1ca8e50
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions pkg/events/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,29 @@ const (
DirectoryGroupUserAdded = "dsync.group.user_added"
DirectroyGroupUserRemoved = "dsync.group.user_removed"
// User Management Events
UserCreated = "user.created"
UserUpdated = "user.updated"
UserDeleted = "user.deleted"
OrganizationMembershipAdded = "organization_membership.added" // Deprecated: use OrganizationMembershipCreated instead
OrganizationMembershipCreated = "organization_membership.created"
OrganizationMembershipDeleted = "organization_membership.deleted"
OrganizationMembershipUpdated = "organization_membership.updated"
OrganizationMembershipRemoved = "organization_membership.removed" // Deprecated: use OrganizationMembershipDeleted instead
SessionCreated = "session.created"
InvitationCreated = "invitation.created"
MagicAuthCreated = "magic_auth.created"
AuthenticationEmailVerificationFailed = "authentication.email_verification_failed"
AuthenticationEmailVerificationSucceeded = "authentication.email_verification_succeeded"
AuthenticationMagicAuthFailed = "authentication.magic_auth_failed"
AuthenticationMagicAuthSucceeded = "authentication.magic_auth_succeeded"
AuthenticationMfaFailed = "authentication.mfa_failed"
AuthenticationMfaSucceeded = "authentication.mfa_succeeded"
AuthenticationOauthFailed = "authentication.oauth_failed"
AuthenticationOauthSucceeded = "authentication.oauth_succeeded"
AuthenticationPasswordFailed = "authentication.password_failed"
AuthenticationPasswordSucceeded = "authentication.password_succeeded"
AuthenticationSsoFailed = "authentication.sso_failed"
AuthenticationSsoSucceeded = "authentication.sso_succeeded"
UserCreated = "user.created"
UserUpdated = "user.updated"
UserDeleted = "user.deleted"
OrganizationMembershipAdded = "organization_membership.added" // Deprecated: use OrganizationMembershipCreated instead
OrganizationMembershipCreated = "organization_membership.created"
OrganizationMembershipDeleted = "organization_membership.deleted"
OrganizationMembershipUpdated = "organization_membership.updated"
OrganizationMembershipRemoved = "organization_membership.removed" // Deprecated: use OrganizationMembershipDeleted instead
SessionCreated = "session.created"
InvitationCreated = "invitation.created"
MagicAuthCreated = "magic_auth.created"
)

// Client represents a client that performs Event requests to the WorkOS API.
Expand Down

0 comments on commit 1ca8e50

Please sign in to comment.