Connect Okta Single Sign-On to Netos
Connect your company's Okta to Netos so your people sign in with their Okta account. The zone gateway checks admission to each environment. NetBox group permissions determine which tables admitted users can view or change. This guide is for the Okta administrator and the Netos contact working together on the setup.
What You Need
Setup takes about 30 minutes in Okta, then Netos updates your zone. Have these ready before you start.
On your side (Okta administrator)
- An Okta administrator account that can create app integrations and edit Security > API > Authorization Servers > default.
- The email domains your people sign in with, for example
example.com. - Every user's Okta username is their work email in one of those domains.
- The Okta group names to use for admission to each environment and the intended NetBox group memberships.
- The view, add, change and delete permissions each NetBox group needs on specific tables in each environment.
- If the environment requires MFA, an authenticator your users already hold (Okta Verify, Google Authenticator or similar).
From Netos (we send you)
- Your zone name and its two sign-in redirect URLs.
- A public key (a JSON Web Key whose
kidstarts withnca-). There is no client secret.
Back to Netos (you send us, Step 5)
- Issuer URL, client ID, email domains, Okta group names for gateway admission, and the intended NetBox group membership and table permissions per environment.
Purpose and Audience
Every Netos environment sits behind a Netos zone gateway, for example https://<zone>.app.netos.io. The gateway signs users in with an identity provider, then passes their identity and groups to NetBox. When you connect Okta, the gateway sends every user whose email is in your company domain to your Okta, and reads their Okta groups for the environment’s admission and group settings.
You keep control of your people in Okta: who can sign in, their MFA, and their group membership. Netos configures gateway admission and sets table permissions on NetBox groups in each environment.
When to Use This Guide
Use it when you want your users to sign in to Netos with Okta instead of a Netos ID account. Do not use it for Netos staff access or for scripts; those are separate.
Prerequisites and Limits
- An Okta organization where you can create applications and edit an authorization server. The guide uses the
defaultcustom authorization server. - Your zone name from Netos.
- The email domains your users sign in with (for example
example.com). Each domain is linked to one identity provider on a zone. Once a domain is linked to your Okta, users in that domain can only sign in to that zone through Okta. - Each user's Okta username must be their work email in one of those domains.
- Agree the browser admission rules for each environment and the table permissions to configure on its NetBox groups. MCP requires a gateway group grant.
- No client secret is exchanged. Netos authenticates to Okta with a signed token (
private_key_jwt), so there is no shared secret to store or rotate on your side.
How Sign-In Works
sequenceDiagram
actor U as User
participant G as Netos zone gateway
participant O as Your Okta
participant N as NetBox
U->>G: Open Netos link, enter work email
G->>U: Continue with Okta
U->>O: Sign in and MFA
O->>G: ID token with groups
G->>G: Check browser admission for the environment
G->>N: Pass the admitted user's identity and groups
N->>N: Enforce NetBox group permissions on each table
- The user opens a Netos link and enters their work email.
- The gateway sees the email domain and shows Continue with Okta.
- Okta signs the user in and applies your sign-in policy, including MFA.
- Okta returns an ID token with the user's identity and groups.
- The gateway checks the environment’s browser admission rules. For admitted users, NetBox creates the user on first sign-in and enforces the table permissions assigned to their NetBox groups.
What Your Users See
They enter their work email on the Netos sign-in page.

Netos recognizes the domain and offers Continue with Okta.

Okta asks for their password, then their MFA code.


They land on your Netos home page with the environments they can use.

Group changes in Okta apply the next time the user signs in. Sessions are checked against Okta again at a fixed interval set for your zone.
Step 1: Create the Okta Application
In the Okta Admin Console, open Applications > Applications and select Create App Integration.

Select the Classic experience tab, then choose OIDC - OpenID Connect and Web Application, and select Next.

Name it, for example
Netos <zone>.Grant types: Authorization Code and Refresh Token.
Sign-in redirect URIs, both of these:
https://<zone>.app.netos.io/_auth/callbackhttps://<zone>-auth.app.netos.io/_auth/callback

Save, then open General > Client Credentials and set Client authentication to Public key / Private key.

Add the public key Netos sends you for your zone (a JSON Web Key with a
kidthat starts withnca-). Do not generate a key in Okta.Under Assignments, assign the Okta groups whose members may sign in to Netos.
Step 2: Add the Groups Claim
Netos reads group names from a groups claim in the ID token.
- Open Security > API > Authorization Servers > default > Claims > Add Claim.
- Name
groups, include in ID Token, Always. - Value type Groups, filter Matches regex
.*, or a narrower filter that keeps the groups you will use for Netos. - Include in Any scope.

Okta sends group names, not IDs. Avoid renaming a group you use for Netos without telling Netos first.
Step 3: Allow the Application on the Authorization Server
- Open Security > API > Authorization Servers > default > Access Policies.
- Add a policy assigned to the Netos application, with a rule that allows the Authorization Code grant for the users or groups who use Netos.

Without this, Okta refuses to issue tokens to the Netos application.
Step 4: Set the Sign-In Policy
Netos treats a sign-in as MFA when Okta reports it (amr contains mfa) or when its acr matches a value
configured for Okta in your zone. Production must explicitly set whether MFA is required.
- If the environment requires MFA, open the application's Sign On tab and choose an authentication policy that requires two factors.
- Make sure the policy accepts the factors your users actually hold. Okta's default "Any two factors" policy can require phishing-resistant Okta Verify; users with only another authenticator then cannot finish sign-in.

Step 5: Send These Details to Netos
| Item | Example |
|---|---|
| Issuer URL | https://<your-okta-domain>/oauth2/default |
| Client ID | 0oa1abc2def3ghi4j5k6 |
| Email domains | example.com |
| Okta groups to admit per environment | Admit netos-engineers and netos-viewers to lab and production |
| NetBox group membership and table permissions per environment | Map to engineers and viewers. Grant the engineers group view and change on Devices in lab and view in production. Grant the viewers group view in both |
Netos adds Okta to your zone, configures gateway admission and NetBox group membership for each environment, and confirms when you can test the separately configured NetBox table permissions.
Groups and Permissions
The gateway checks admission per environment. MCP requires a gateway group grant. A browser route using Okta groups directly can admit users from an allowed provider when group filtering is off. If a route requires a gateway group grant and the user has none, the gateway shows Access denied.
NetBox enforces the table permissions assigned to the user's NetBox groups in that environment. A change to Okta group membership takes effect at the next sign-in. Ask Netos to change gateway admission settings or the table permissions assigned to a NetBox group.
Worked Example
Example Corp signs in with example.com and has two Netos zones, one for lab and one for production.
- In Okta, the administrator creates one
Netos <zone>application per zone using that zone's redirect URIs (Step 1). They add thegroupsclaim (Step 2), an access policy (Step 3) and a two-factor sign-in policy (Step 4) for each application. - They create two Okta groups,
netos-engineersandnetos-viewers, and assign both to each application. - They send Netos the issuer URL, client ID, domain and admission groups for each zone. Both Okta groups receive gateway admission to lab and production. The administrator also specifies the NetBox permissions for the Devices table. On lab, the engineers group can view and change devices, and the viewers group can view them. On production, both NetBox groups can view devices.
- An engineer signs in on lab and production and completes MFA. The gateway admits them to both environments. Their NetBox group lets them edit devices on lab and view devices on production.
- The administrator moves the engineer to
netos-viewers. At the next sign-in the gateway still admits them to both environments. Their NetBox groups now grant view access to devices in both.
Test Checklist
- A user in a linked group opens your Netos link, enters their email, and sees Continue with Okta.
- They complete Okta sign-in and any required MFA, then land in NetBox with their name shown.
- In NetBox, check their group and verify the expected view or change access on the intended tables.
- Move them to a different Okta group and sign in again; their NetBox group changes.
- On an environment that requires a gateway group grant, a user without one gets Access denied.
Removing Access
Remove the user from the Netos groups in Okta, or deactivate them. They cannot start a new session, and existing browser sessions end at the next check against Okta. Their AI assistant connections end the same way. See Revoke and Reconnect.
Troubleshooting
| What the user sees | Likely cause | Fix |
|---|---|---|
| Email goes to Netos ID instead of Okta | The email domain is not linked to Okta on this zone | Send Netos the domain |
| Okta asks to set up Okta Verify and the user cannot continue | The sign-in policy requires an authenticator the user does not have | Adjust the application's authentication policy (Step 4) |
| "Sign in failed" after Okta | Netos could not complete the token exchange, often a missing or wrong public key, or no access policy on the authorization server | Check Steps 1.6 and 3, then send Netos the time of the attempt |
| "Access denied" after Okta | The environment requires a gateway group grant and the user has none, or their Okta username is not an email in a linked domain | Check the environment’s admission settings, group assignment and the user's Okta username |
| Refused on an environment that requires MFA | Okta did not report MFA in the sign-in claims | Check the Okta policy and any acr values configured for your zone (Step 4) |
Netos support can trace a failed sign-in from the reference ID shown on the error page.