Skip to main content
Version: Next

Okta

To enable Okta integration you need to generate Okta API token and configure EDFN agent.

You don't have to do any special configuration in Okta. Only API token has to be generated and user who generates the token must have read System Logs permission (for example, user may have role "Report Administrator"). For API token generation:

  1. Sign in to your Okta organization
  2. Navigate to Admin Console > Security > API > Token tab
  3. Click Create Token
  4. Enter token name and click Create Token button
  5. Record the token value

For more details about API token and how to generate it, visit the following link: https://developer.okta.com/docs/guides/create-an-api-token/main/

User Identity Agent Configuration​

Open NFO web interface and navigate to External Data Feeder page or to the Network Conversations Monitor module's page, and perform the following:

  1. Open User Identity Monitor agent configuration window

  2. Select Okta Identity Cloud tab and add a new record. Enter the following properties:

    • IDP: Identity Provider name to be reported in idp output syslog field
    • Okta domain: Okta organization URL, like https://<org>.okta.com
    • API token: Okta API token to authenticate EDFN agent's requests
    • Session timeout: if there are no logs during timeout period, user session expected to be closed. Format example: 1d 2h 5m 10s indicates 1 day, 2 hours 5 minutes, 10 seconds

Set Session timeout equal to Maximum Okta session lifetime. If that value is No time limit, set it to 12h. Maximum Okta session lifetime value is available on Okta organization Admin console > Security > Authentication > Sign On tab > select Policy and expand rule to view the value.

The agent may request logs from different Okta organizations. Please add separate configuration record for each Okta organization.

Save the agent changes. The agent will request new event logs and update the watch list according to the scheduler expression: every minute by default.

Internal (Private) Client IP Addresses​

Okta records the public IP address each request comes from. Users behind a corporate NAT therefore share one egress IP in the Okta System Log, and flows that carry their internal IPs are not attributed to them. If traffic to Okta passes through a proxy that adds the X-Forwarded-For (XFF) header with the client's internal IP, and that proxy is a trusted proxy in Okta, Okta records the internal IP instead (Okta: Trusted proxies). The EDFN agent then maps the internal IP to the user; no NFO configuration change is needed.

Requirements​

  • A proxy, secure web gateway, or web application firewall (WAF) that receives traffic from the internal network and therefore sees the clients' internal IPs. A device in front of an Okta custom domain sees only the public NAT IP.
  • NFO receives flows with internal client IPs, for example from exporters inside the NAT boundary.

Proxy Configuration​

  1. Enable TLS inspection for the Okta organization domain (<org>.okta.com) and any Okta custom domain. Without it, the proxy cannot add headers to HTTPS requests.
  2. Insert the X-Forwarded-For header with the client's internal IP, and remove any client-supplied XFF header so users cannot spoof their IP.
  3. Route all Okta traffic through the proxy, then test sign-in, MFA, and Okta Verify.

Okta Configuration​

In the Okta Admin Console, go to Security > Networks and edit the IP zone used by your sign-on and MFA policies, or create one with Add Zone > IP Zone (Okta: Create an IP zone). Set both fields in the same zone:

  • Trusted Proxy IPs: the proxy's public egress IPs.
  • Gateway IPs: the internal client subnets, so policies still match the zone (Okta: IP zones).
caution

An IP listed only as a trusted proxy does not match the zone by itself. If traffic that bypasses the proxy leaves through the same public IP, it falls outside the zone and zone-based policies stop matching. Use a dedicated egress IP for the proxy.

Verification​

Sign in as a test user and open Reports > System Log in the Okta Admin Console: the user's sign-in event must show the host's internal IP. In NFO, the user identity watch list must contain that internal IP with the test user.

Limitations​

  • Only users whose Okta traffic passes through the proxy are covered; remote users without a full-tunnel VPN are still recorded with their public IP.
  • The watch list is keyed by IP only, so users at different sites with overlapping private ranges share one entry.

Implementation Details​

EDFN agent reads Okta logs via the System Log API: https://developer.okta.com/docs/reference/api/system-log/

During first agent execution, all logs no older than session timeout are requested. After that only logs since last event are requested.

The agent reads only success events where event types starts with user., filter: eventType sw "user." and outcome.result eq "SUCCESS". All event types are available here: https://developer.okta.com/docs/reference/api/event-types/

There are three different groups of event types:

  • New user session or session prolongation events: user.session.start and other events except types from next two items
  • Session close events: user.session.end or user.session.expire
  • Close all user sessions: user.session.clear, user.lifecycle.deactivate, or user.lifecycle.suspend

User name is read from actor json section or from target section.