Setting up Okta so agents can reach a protected site
The video picks up at step 2, with the application already created. If you have not made the app integration yet, start at step 1 below.
Before you start
- The site’s address must already be in your Superflow project, under Settings → Manage domains. Site Access takes the address from there and never asks you to type it, so with no domain set its buttons stay greyed out.
- Site Access must be included in your plan. If it is not, the switch shows an upgrade prompt instead.
- Permission to create a user in Okta, and to change sign on policies, or someone who can.
If you last used Okta on an older console
Three things moved:- Applications now sits under Applications and Resources in the sidebar.
- Security → Authentication Policies now opens a page with two cards. Press App sign-in to see the list of policies.
- An app’s Assignments tab may have no Assign button at all. That is expected, and step 3 explains why.
1. Open or create the application
If your site already signs in with Okta, the application exists. Open it from Applications and Resources → Applications and go on to step 2. To create one: Applications and Resources → Applications → Create App Integration- Sign-in method: OIDC - OpenID Connect
- Application type: Web Application
- Grant type: Authorization Code
- Sign-in redirect URI: your site’s callback address
- Save, then copy the Client ID and Client secret from the General tab
2. Create the service account
Directory → People → Add Person
Ticking I will set password is not optional. Left unticked, Okta creates the account with no password and emails an activation link, and the agent has no inbox.
When you tick it, two more controls appear. Set a password, and untick “User must change password on first sign-in”.
3. Create a group, and check the assignment
Directory → Groups → Add group, name it something likesuperflow-agents, and add the service account to it.
The group exists so the three policy rules below have something to point at. You do not need it for application access.
There is probably nothing to assign. Open the application’s Assignments tab. If it says “This app is implicitly assigned to users”, there is no Assign button, and that is expected. Sign on rules decide who gets in, so the policies below are what let the service account through. This is the default for new OIDC apps.
4. The three policies
All three target thesuperflow-agents group. All three are needed. The rule and policy names below are examples; any name works.
a. Application sign on policy
Open the application, go to the Sign On tab, scroll to the User authentication card, and press View policy details. Or go to Security → Authentication Policies, press App sign-in, and open the policy your app uses. In a new org that is often Any two factors. The policy page has two tabs worth opening, in this order:- Application lists every app that shares this policy. Read it before changing anything, for the reason in the warning below.
- Rules is where the exemption goes.
superflow-agents password only), and set:
- IF User’s group membership includes →
superflow-agents - THEN Access is Allowed, and User must authenticate with is Password / IdP
b. Global session policy
Security → Global Session Policy → add a policy forsuperflow-agents (for example superflow-agents service accounts) with a rule (for example Password only no MFA) where Multifactor authentication (MFA) is set to Not required. Keep the policy at number 1, above Default Policy.
This is separate from the first, and neither substitutes for the other. One governs opening the application, the other governs establishing a session with Okta at all.
c. Authenticator enrolment
Security → Authenticators → Enrollment tab → add a policy forsuperflow-agents (for example superflow-agents password enrollment) with Password set to Required, and authenticator apps such as Okta Verify set to Optional or Disabled. Keep it at number 1, above the default.
Set Email to Disabled. You may find that Email cannot be set to Optional at all: Okta rejects Optional when the email authenticator is configured for recovery only, because Optional and Required both need it enabled for authentication. Disabled is the better choice here anyway, since it removes one more enrolment prompt.
5. Prove it before involving an agent
Open a private browser window and sign in to your protected page by hand, as the service account. If you reach your content having typed only a username and password, with no code prompt, no enrolment screen, and no password change, then the agent will get in too. If any extra screen appears, that is the policy still to fix, and you have found it in thirty seconds instead of a full agent run.Signing in to the Okta admin console will still prompt you for multi-factor. That is separate and correct. It applies to your own administrator account, not to the service account, and it should be left alone.
6. Connect it in Superflow
1
Open your project's Site Access settings
2
Turn on This project is password protected
3
Under How the site is protected, choose Single sign on (Okta, SAML)
4
Enter the service account's username and password, and press Save password
You should see “Saved. Agents will use these credentials on the next run.” The password box empties after saving. That is normal: the password is stored, and is never shown again.
5
Type the password into the box again
Test access stays greyed out until you do.
6
Press Test access once, and give it up to a minute
A real browser is signing in. You should see “Unlocked. Agents can read this site.”
okta.com is a recognised provider, Superflow signs in directly without asking you to confirm the address.
When something is wrong
What each message means, why a sign in that used to work stops, and what Superflow stores.