Back to Documentation
Official Integration🚀 Coming to Auth0 Marketplace

Auth0 Integration

Monitor authentication events from your Auth0 tenant in real-time. Choose between Auth0 Actions for instant events or Log Streams for comprehensive audit logging.

What You Get

Two Integration Methods
Choose between Auth0 Actions for real-time events or Log Streams for comprehensive logging
Full Forensic Data
Capture IP addresses, User-Agent, risk scores, and MFA status from Auth0
Behavioral AI Ready
Enable Impossible Travel, Geo Anomaly, and VPN/Tor detection with IP data
Unified Timeline
View all auth events alongside other security data in your dashboard

Auth0 Marketplace (Coming Soon)

🚀 1-Click Install

We're submitting LiteSOC to the official Auth0 Marketplace. Once approved, you'll be able to install with a single click — no code required. In the meantime, use one of the methods below.

Choose Your Integration Method

Both methods work great — choose based on your needs.

Recommended
Auth0 Actions
Real-time events via custom Actions
  • Real-time event delivery
  • Full IP & User-Agent capture
  • Access to Auth0 risk scores
  • Behavioral AI detection enabled
  • ~Requires Action code setup
Zero-Code
Auth0 Log Streams
Webhook-based log delivery
  • 20+ event types supported
  • No code required
  • Includes IP addresses
  • Comprehensive audit log
  • ~Near real-time (slight delay)

Setup: Auth0 Actions

Create custom Actions to send events to LiteSOC in real-time.

1

Get Your API Key

Go to your LiteSOC dashboard → Settings → API Keys to create or copy your Live API key.

https://litesoc.io/dashboard/settings/api-keys
2

Create a Post-Login Action

In your Auth0 Dashboard, go to Actions → Library → Create Action → Build from scratch. Name it "LiteSOC Login Tracking" and select the Login / Post Login trigger.

3

Add the Action Code

Paste this code into your Action. It captures IP, User-Agent, and risk scores.

post-login.jsView on GitHub
exports.onExecutePostLogin = async (event, api) => {
  const LITESOC_API_KEY = event.secrets.LITESOC_API_KEY;
  
  await fetch('https://api.litesoc.io/collect', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': `Bearer ${LITESOC_API_KEY}`
    },
    body: JSON.stringify({
      event_type: 'auth.login_success',
      actor: {
        id: event.user.user_id,
        email: event.user.email,
        name: event.user.name
      },
      context: {
        ip_address: event.request.ip,
        user_agent: event.request.user_agent,
        geo: event.request.geoip,
        connection: event.connection.name,
        risk_score: event.riskAssessment?.risk?.value
      },
      metadata: {
        auth0_tenant: event.tenant.id,
        mfa_used: event.authentication?.methods
          ?.some(m => m.name === 'mfa') || false
      }
    })
  });
};
4

Add Your API Key as a Secret

In the Action editor, click the 🔑 Secrets icon on the left sidebar. Add a new secret named LITESOC_API_KEY with your API key value.

5

Deploy & Add to Flow

Click Deploy, then go to Actions → Flows → Login. Drag your new Action into the flow and click Apply.

Additional Actions Available

We provide ready-to-use templates for other Auth0 triggers:

Events from Actions

auth.login_successPost-Login

Post-Login Action fires on successful authentication

info
auth.signup_successPost-Registration

Post-User-Registration Action fires when a new user signs up

info
auth.password_resetPost-Change-Password

Post-Change-Password Action fires when password is changed

medium
auth.mfa_challengeSend-Phone-Message

Send-Phone-Message Action fires when MFA code is sent

info

Setup: Auth0 Log Streams

Configure a webhook Log Stream for zero-code integration.

1

Get Your API Key

Go to your LiteSOC dashboard → Settings → API Keys to create or copy your Live API key.

2

Create a Log Stream

In your Auth0 Dashboard, go to Monitoring → Streams → Create Log Stream → Custom Webhook.

3

Configure the Webhook URL

Set the Payload URL to include your API key as a query parameter:

https://api.litesoc.io/webhooks/auth0?api_key=lsoc_live_YOUR_API_KEY

Replace lsoc_live_YOUR_API_KEY with your actual API key.

4

Select Event Categories

Choose which events to stream. We recommend at least:

  • Success Login
  • Failed Login
  • Success Signup
  • Success Change Password
  • Success/Failed MFA Challenge
5

Save & Test

Click Save. Auth0 will send a test event — check your LiteSOC dashboard to confirm it arrived.

Log Stream Event Mapping

Auth0 log event types are automatically mapped to LiteSOC's standard events.

Auth0 Event TypeLiteSOC EventSeverity
s (Success Login)auth.login_successinfo
ss (Success Signup)auth.signup_successinfo
f, fp, fu (Failed Logins)auth.login_failedmedium
scp (Success Change Password)auth.password_resetmedium
gd_auth_succeedauth.mfa_challengeinfo
gd_auth_failedauth.mfa_failedhigh
gd_enrollment_completeauth.mfa_enabledinfo
sapi (Success API Operation)admin.settings_changedhigh
limit_wc (Rate Limit)security.rate_limitedhigh
w (Warning)security.suspicious_activityhigh

🎉 Full Behavioral AI Support

Unlike some integrations, Auth0 provides IP addresses in both Actions and Log Streams. This means you get full Behavioral AI detection out of the box:

  • Impossible Travel Detection
  • Geo Anomaly Detection
  • VPN/Proxy/Tor Detection
  • Brute Force Detection (with failed logins)

Need Help?

Having trouble with your Auth0 integration? Check out our resources or reach out.