Skip to content

Commit b57fa99

Browse files
authored
Merge pull request #1 from tinybirdco/add-auth0
add auth0
2 parents 5b0f7ad + bac40c5 commit b57fa99

File tree

3 files changed

+157
-0
lines changed

3 files changed

+157
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://github.com/auth0/auth0-log-schemas
4+
5+
TAGS "auth0"
6+
7+
SCHEMA >
8+
`type` String `json:$.type`,
9+
`description` String `json:$.description`
10+
11+
ENGINE "MergeTree"
12+
ENGINE_SORTING_KEY "type"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://github.com/auth0/auth0-log-schemas for the `details` schema definition for each log type
4+
5+
TAGS "auth0"
6+
7+
SCHEMA >
8+
`log_id` String `json:$.log_id`,
9+
`type` String `json:$.data.type` DEFAULT 'unknown',
10+
`date` DateTime64(3) `json:$.data.date` DEFAULT now(),
11+
`client_name` LowCardinality(String) `json:$.data.client_name` DEFAULT 'unknown',
12+
`user_id` String `json:$.data.user_id` DEFAULT 'unknown',
13+
`connection_id` Nullable(String) `json:$.data.connection_id`,
14+
`ip` Nullable(String) `json:$.data.ip`,
15+
`data_log_id` Nullable(String) `json:$.data.log_id`,
16+
`user_name` Nullable(String) `json:$.data.user_name`,
17+
`client_id` Nullable(String) `json:$.data.client_id`,
18+
`client_ip` Nullable(String) `json:$.data.client_ip`,
19+
`tenant_name` Nullable(String) `json:$.data.tenant_name`,
20+
`description` Nullable(String) `json:$.data.description`,
21+
`connection` Nullable(String) `json:$.data.connection`,
22+
`audience` Nullable(String) `json:$.data.audience`,
23+
`scope` Array(Nullable(String)) `json:$.data.scope[:]`,
24+
`user_agent` Nullable(String) `json:$.data.user_agent`,
25+
`hostname` Nullable(String) `json:$.data.hostname`,
26+
`strategy` Nullable(String) `json:$.data.strategy`,
27+
`strategy_type` Nullable(String) `json:$.data.strategy_type`,
28+
`tracking_id` Nullable(String) `json:$.data.tracking_id`,
29+
`event_schema_version` Nullable(String) `json:$.data.['$event_schema'].version`,
30+
`auth0_client` JSON `json:$.data.auth0_client` DEFAULT '{}',
31+
`details` JSON `json:$.data.details` DEFAULT '{}'
32+
33+
ENGINE "MergeTree"
34+
ENGINE_PARTITION_KEY "toYYYYMM(date)"
35+
ENGINE_SORTING_KEY "type, user_id, date"
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{"type": "fepotpft", "description": "Failed exchange of Passwordless OTP for Access Token"}
2+
{"type": "fce", "description": "Failed to change user email"}
3+
{"type": "fd", "description": "Failed to generate delegation token"}
4+
{"type": "gd_auth_succeed", "description": ""}
5+
{"type": "srrt", "description": "Successfully revoked a refresh token"}
6+
{"type": "fsa", "description": "Failed Silent Auth"}
7+
{"type": "fcpn", "description": "Failed Change Phone Number"}
8+
{"type": "pwd_leak", "description": "Someone behind the IP address ip attempted to login with a leaked password"}
9+
{"type": "gd_send_pn", "description": "Push notification for MFA sent successfully sent"}
10+
{"type": "sce", "description": "Successful Change Email"}
11+
{"type": "feoobft", "description": "Failed exchange of Password and OOB Challenge for Access Token"}
12+
{"type": "wum", "description": "A warning has happened during user management related tasks"}
13+
{"type": "ssa", "description": "Successful Silent Auth"}
14+
{"type": "seacft", "description": "Successful Exchange of Authorization Code for Access Token"}
15+
{"type": "fpar", "description": "Failed Push Authorization Request"}
16+
{"type": "gd_webauthn_enrollment_failed", "description": ""}
17+
{"type": "ublkdu", "description": "User block setup by anomaly detection has been released"}
18+
{"type": "gd_otp_rate_limit_exceed", "description": "A user, during enrollment or authentication, enters an incorrect code more than the maximum allowed number of times. Ex: A user enrolling in SMS enters the 6-digit code wrong more than 10 times in a row."}
19+
{"type": "appi", "description": "API Peak Performance Rate is initiated"}
20+
{"type": "gd_send_pn_failure", "description": "Push notification for MFA failed"}
21+
{"type": "sepft", "description": "Successful Exchange of Password for Access Token"}
22+
{"type": "limit_mu", "description": "An IP address is blocked because it attempted too many failed logins without a successful login. Or an IP address is blocked because it attempted too many sign-ups, whether successful or failed."}
23+
{"type": "feccft", "description": "Failed exchange of Access Token for a Client Credentials Grant"}
24+
{"type": "gd_send_sms", "description": ""}
25+
{"type": "fens", "description": "Failed exchange for Native Social Login"}
26+
{"type": "gd_recovery_succeed", "description": ""}
27+
{"type": "fepft", "description": "Failed exchange of Password for Access Token"}
28+
{"type": "fpurh", "description": "Failed Post User Registration Hook"}
29+
{"type": "pla", "description": "Generated before a login and helps in monitoring the behavior of bot detection without having to enable it."}
30+
{"type": "sertft", "description": "Successful Exchange of Refresh Token for Access Token"}
31+
{"type": "f", "description": "Failed Login This is only emitted if the error is not covered by the `fp` or `fu` log types"}
32+
{"type": "mgmt_api_read", "description": "Successful GET request on the management API. This event will only be emitted if a secret is returned."}
33+
{"type": "scu", "description": "Successful Change Username"}
34+
{"type": "fcoa", "description": "Failed Cross-Origin Authentication"}
35+
{"type": "sdu", "description": "Successful User Deletion"}
36+
{"type": "refresh_tokens_revoked_by_session", "description": "Successfully revoked a refresh token"}
37+
{"type": "fcph", "description": "Failed Post Change Password Hook"}
38+
{"type": "gd_webauthn_challenge_failed", "description": ""}
39+
{"type": "fede", "description": "Failed to exchange Device Code for Access Token"}
40+
{"type": "gd_send_voice_failure", "description": ""}
41+
{"type": "fdecc", "description": "Failed Device Confirmation - User Canceled"}
42+
{"type": "cs", "description": "Passwordless Login Code Sent"}
43+
{"type": "depnote", "description": "Deprecation Notice"}
44+
{"type": "gd_unenroll", "description": ""}
45+
{"type": "s", "description": "Successful Login"}
46+
{"type": "api_limit", "description": "The maximum number of requests to the Authentication or Management APIs in given time was reached"}
47+
{"type": "oidc_backchannel_logout_failed", "description": ""}
48+
{"type": "gd_enrollment_complete", "description": "A first time MFA user has successfully enrolled using one of the factors"}
49+
{"type": "fcu", "description": "Failed to change username"}
50+
{"type": "gd_send_sms_failure", "description": ""}
51+
{"type": "fdu", "description": "Failed User Deletion"}
52+
{"type": "feacft", "description": "Failed to Exchange Authorization Code for Access Token"}
53+
{"type": "seccft", "description": "Successful Exchange of Access Token for a Client Credentials Grant"}
54+
{"type": "gd_send_voice", "description": ""}
55+
{"type": "seotpft", "description": "Successful Exchange of Password and OTP Challenge for Access Token"}
56+
{"type": "fn", "description": "Failed Notification"}
57+
{"type": "gd_update_device_account", "description": ""}
58+
{"type": "sd", "description": "Successful Delegation"}
59+
{"type": "fco", "description": "Failed due to CORS. Is the origin in the Allowed Origins list for the specified application?"}
60+
{"type": "cls", "description": "Passwordless Login Code/Link Sent"}
61+
{"type": "fcp", "description": "Failed Change Password"}
62+
{"type": "gd_auth_rejected", "description": "User rejected a multi-factor authentication request via push-notification"}
63+
{"type": "oidc_backchannel_logout_succeeded", "description": ""}
64+
{"type": "scp", "description": "Successful Change Password"}
65+
{"type": "fertft", "description": "Failed Exchange of Refresh Token for Access Token. This could occur if the refresh token is revoked or expired."}
66+
{"type": "fcpr", "description": "Failed Change Password Request"}
67+
{"type": "mfar", "description": "A user has been prompted for multi-factor authentication (MFA). When using Adaptive MFA, Auth0 includes details about the risk assessment"}
68+
{"type": "resource_cleanup", "description": "Emitted when resources exceeding defined limits were removed. Normally related to refresh tokens"}
69+
{"type": "sede", "description": "Successful Exchange of Device Code for Access Token"}
70+
{"type": "scoa", "description": "Successful Cross-Origin Authentication"}
71+
{"type": "gd_tenant_update", "description": ""}
72+
{"type": "scph", "description": "Successful Post Change Password Hook"}
73+
{"type": "gd_send_email_failure", "description": ""}
74+
{"type": "gd_send_email", "description": ""}
75+
{"type": "gd_start_enroll", "description": ""}
76+
{"type": "fi", "description": "Failed to accept a user invitation. This could happen if the user accepts an invitation using a different email address than provided in the invitation, or due to a system failure while provisioning the invitation."}
77+
{"type": "sui", "description": "Successful Users Import"}
78+
{"type": "fv", "description": "Failed to send verification email"}
79+
{"type": "seoobft", "description": "Successful Exchange of Password and OOB Challenge for Access Token"}
80+
{"type": "fs", "description": "Failed Signup"}
81+
{"type": "fdeac", "description": "Failed Device Confirmation - Device Activation Failure"}
82+
{"type": "gd_auth_email_verification", "description": ""}
83+
{"type": "gd_recovery_failed", "description": "A user entered a wrong Recovery Code when attempting to authenticate"}
84+
{"type": "limit_delegation", "description": "A user is temporarily prevented from logging in because of too many delegation requests"}
85+
{"type": "scpr", "description": "Successful Change Password Request"}
86+
{"type": "ferrt", "description": "Failed Exchange of Rotating Refresh Token. This could occur when reuse is detected."}
87+
{"type": "gd_start_enroll_failed", "description": ""}
88+
{"type": "fercft", "description": "Failed Exchange of Password and MFA Recovery Code for Access Token"}
89+
{"type": "fvr", "description": "Failed to proces verification email request"}
90+
{"type": "fcpro", "description": "Failed to provision a AD/LDAP connector"}
91+
{"type": "ss", "description": "Successful Signup"}
92+
{"type": "scpn", "description": "Successful Change Phone Number"}
93+
{"type": "limit_wc", "description": "An IP address is blocked because it reached the maximum failed login attempts into a single account."}
94+
{"type": "fp", "description": "Failed login due to invalid password"}
95+
{"type": "w", "description": "A warning has happened during a login flow"}
96+
{"type": "limit_sul", "description": "A user is temporarily prevented from logging in because they reached the maximum logins per time period from the same IP address"}
97+
{"type": "svr", "description": "Successfully called verification email endpoint. Verification email has been queued for sending."}
98+
{"type": "gd_auth_failed", "description": "Multi-factor authentication failed. This could happen due to a wrong code entered for SMS/Voice/Email/TOTP factors, or a system failure."}
99+
{"type": "feotpft", "description": "Failed exchange of Password and OTP Challenge for Access Token"}
100+
{"type": "gd_start_auth", "description": ""}
101+
{"type": "slo", "description": "Successful Logout"}
102+
{"type": "fu", "description": "Failed login due to invalid username"}
103+
{"type": "sens", "description": "Successful Exchange - Native Social Login"}
104+
{"type": "session_revoked", "description": "Successfully revoked a session"}
105+
{"type": "sapi", "description": "Successful API Operation Only emitted by the Management API on POST, DELETE, PATCH, and PUT"}
106+
{"type": "fdeaz", "description": "Failed Device Confirmation - Request Failure"}
107+
{"type": "sv", "description": "Successfully consumed email verification link"}
108+
{"type": "sercft", "description": "Successful Exchange of Password and MFA Recovery Codeode for Access Token"}
109+
{"type": "si", "description": "Successfully accepted a user invitation"}
110+
{"type": "flo", "description": "Failed Logout"}

0 commit comments

Comments
 (0)