1. Create the application
Applications → 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
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.
You may not need to assign the app to anyone. If the application’s Assignments tab says “This app is implicitly assigned to users” with Federation Broker Mode enabled, access is decided entirely by sign on policy and there is nothing to assign. This is the default for new OIDC apps.
4. The three policies
All three target thesuperflow-agents group. All three are needed.
a. Application sign on policy
From the app’s Sign On tab, scroll past the token settings to the authentication policy card, and open the policy it names. Or go to Security → Authentication Policies and pick the policy your app uses. Add a rule:- IF User’s group membership includes →
superflow-agents - THEN Access is Allowed, and User must authenticate with a single factor option such as Password / IdP
b. Global session policy
Security → Global Session Policy → add a policy or rule forsuperflow-agents with Multifactor authentication: Not required, placed above the default.
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 → add a policy forsuperflow-agents with Password required and the authenticator apps set to Optional or Disabled, placed above the default.
You may find that Email cannot be set to Optional and has to be Disabled. 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
Enter the service account’s username and password in Site Access, choose Single sign on, and press Test access. Becauseokta.com is a recognised provider, it signs in directly without asking you to confirm the address.