npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rawdash/connector-okta

v0.26.0

Published

Rawdash connector for Okta - syncs users, groups, and authentication events from the Okta Management API and System Log

Downloads

558

Readme

@rawdash/connector-okta

npm version license

Sync users, groups, and authentication events from an Okta org for sign-in volume, sign-in failure rate, and MFA enrollment analytics.

Install

npm install @rawdash/connector-okta

Authentication

An Okta API token (SSWS) is required. Tokens inherit the permissions of the admin who created them, so use a read-only admin account for least privilege. Tokens never leave the org.

  1. Sign in to your Okta admin console as a user with read access to Users, Groups, and the System Log.
  2. Open Security -> API -> Tokens and click Create Token.
  3. Name the token (e.g. "rawdash"), copy the generated value (Okta only shows it once), and finish.
  4. Store the token as a secret and reference it from config as apiToken: secret("OKTA_API_TOKEN"), alongside the org host (the "acme.okta.com" part of your admin URL).

Configuration

| Field | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------ | | host | string | Yes | Your Okta org hostname, e.g. "acme.okta.com" or "acme.oktapreview.com". Do not include the protocol or trailing slash. | | apiToken | secret | Yes | Okta API token (SSWS). Create one at Security -> API -> Tokens. Read-only access to Users, Groups, and the System Log is sufficient. | | resources | array | No | Which Okta resources to sync. Omit to sync all of them. The API token only needs read scopes for the resources listed here. |

Resources

  • okta_user (entity) - Okta users with lifecycle status, last-login timestamp, and profile email / login.
    • Endpoint: GET /api/v1/users
    • status: Lifecycle status (ACTIVE, SUSPENDED, etc).
    • email: Primary email address from profile.email.
    • login: Login identifier (usually the primary email).
    • firstName: First name from profile.firstName.
    • lastName: Last name from profile.lastName.
    • lastLogin: Last successful sign-in time (Unix ms, null if never).
    • createdAt: When the user was created (Unix ms).
    • activatedAt: When the user account was activated (Unix ms).
  • okta_group (entity) - Okta groups (native, app-managed, and built-in) with their name, description, and type.
    • Endpoint: GET /api/v1/groups
    • name: Group display name.
    • description: Group description.
    • type: Group type (OKTA_GROUP for native, APP_GROUP for app-managed, BUILT_IN for system).
    • createdAt: When the group was created (Unix ms).
    • lastMembershipUpdatedAt: Last time membership changed (Unix ms).
  • okta_auth_event (event) - Authentication events from the Okta System Log (sign-in starts, MFA challenges, SSO sign-ins, admin-app access).
    • Endpoint: GET /api/v1/logs
    • The scope is cleared and rewritten on every full sync; incremental syncs append events whose published is strictly newer than options.since.
    • eventType: Okta event type, e.g. user.session.start.
    • result: Outcome result (SUCCESS / FAILURE / ALLOW / DENY / CHALLENGE).
    • reason: Outcome reason string (vendor wording, free-form).
    • actorId: Acting subject id (usually the user id, null if anonymous).
    • actorType: Acting subject type, e.g. "User".
    • authenticationProvider: Provider that performed the authentication.
    • credentialType: Credential type used (PASSWORD, OTP, EMAIL, etc).
    • ipAddress: Client IP address recorded by Okta.
    • country: Geographical country derived by Okta from the client IP.
    • severity: Severity assigned by Okta (DEBUG, INFO, WARN, ERROR).

Example

import {
  defineConfig,
  defineDashboard,
  defineMetric,
  secret,
} from '@rawdash/core';

const okta = {
  name: 'okta',
  connectorId: 'okta',
  config: {
    host: 'acme.okta.com',
    apiToken: secret('OKTA_API_TOKEN'),
  },
};

export default defineConfig({
  connectors: [okta],
  dashboards: {
    identity: defineDashboard({
      widgets: {
        active_users: {
          kind: 'stat',
          title: 'Active users',
          metric: defineMetric({
            connector: okta,
            shape: 'entity',
            entityType: 'okta_user',
            fn: 'count',
            filter: [{ field: 'status', op: 'eq', value: 'ACTIVE' }],
          }),
        },
      },
    }),
  },
});

Rate limits

Okta publishes per-endpoint quotas (commonly 600 to 1200 requests/minute on production orgs, lower for trial orgs) and exposes X-Rate-Limit-Remaining and X-Rate-Limit-Reset (Unix seconds) on every response. The shared HTTP client honors those headers when scheduling the next request and falls back to Retry-After on 429.

Limitations

  • Daily-active-users is not synced as a metric; derive it at query time over the okta_auth_event scope (filter eventType to a sign-in success and count distinct actor ids per day).
  • Application assignments, factors, devices, and the policy / authorization-server APIs are out of scope.
  • Only successful and failed sign-in System Log events are captured; broader event types (admin actions, lifecycle changes) can be added later.

Links

License

Apache-2.0