Configure an Okta sign-on policy
Okta sign-on policies determine who can access your org, where they can access it from, and how they must prove their identity.
All orgs have a default Okta sign-on policy that you can apply to all users. You can create more Okta sign-on policies and apply them to specific groups of users, or prioritize them over the default. When a user attempts to sign in, Okta evaluates policies in their priority order until it finds a match. After the user gains access, no other Okta sign-on policies are evaluated. Therefore, Okta recommends that you order your policies with the most restrictive one at the top of the list. Place the least restrictive one second from last in the list and the default Okta sign-on policy at the bottom of the list.
Create an Okta sign-on policy
-
In the Admin Console, go to
. -
Click the Sign On tab.
-
Click Add New Okta Sign-on Policy.
-
Complete these fields:
-
Policy Name: Enter a name for the sign-on policy.
-
Policy Description: Optional. Enter a description for the Okta sign-on policy.
-
Assign to Groups: Enter the name of a group to which the policy should be applied. The policy can be applied to multiple groups.
-
-
Click Create Policy and Add Rule.
Add an Okta sign-on policy rule
-
Click Add Rule.
-
In the Rule name field, add a descriptive name for the rule that you want to create.
-
Optional. In the Exclude users field, indicate which individual users of a group you want to exclude from the rule.
-
Indicate your conditions, and then click Save.
Use the dropdown menu to assign location parameters. You can specify what kind of location prompts authentication. See Network zones and Dynamic zones. | |
Select the Identity Provider that you want to use. See Identity Providers. | |
Select the required means of authentication. | |
Enter a behavior type or a named behavior. When you add multiple behaviors, they're treated as OR conditions. See Add a behavior to a sign-on policy rule. For high-risk behaviors, be sure to set your secondary factor requirement to Every time. Don't combine a behavior condition with a per device or per session secondary factor requirement. Okta recommends re-authentication every time for the Okta Admin Console. |
|
Select a risk level of Low, Medium, or High. If you select High, be sure to set your secondary factor requirement to Every time. Don't combine a high-risk level with a per device or per session secondary factor requirement. See Risk scoring. |
|
Based on the authentication form of the previous dropdown list, use this one to establish whether the condition allows or denies access. | |
Authentication |
Indicate whether multifactor authentication is required. |
Users will authenticate with |
Select how users authenticate:
|
Users will be prompted for MFA |
If users are required to use MFA, indicate when they're prompted to use it:
|
Session Lifetime |
Configure the duration of Okta sessions. |
Maximum Okta session lifetime |
Configure an Okta session lifetime.
You can set the session lifetime for the Admin Console independently of this global setting. |
Expire session after user has been idle on Okta for |
Configure the amount of idle time that passes before Okta sessions are automatically expired, regardless of the maximum Okta session lifetime:
You can set the timeout for the Admin Console independently of this global setting. |
Persist session cookies across browser sessions |
Enable or disable the persistence of session cookies across browser sessions. Select an option from the dropdown list:
|
After you create a Okta sign-on policy, you must close all active sessions for the new policy to take effect. Okta sign-on policies don't affect API token validity or lifetime. See Manage Okta API tokens.
You can set the maximum session lifetime number through the Okta API. If you previously set this number with the API, you can't exceed that maximum here in the Okta app. Setting a number over the API maximum results in an error.
Universal Okta sign-on policy actions
- Drag and drop the policy into the priority order you want.
- Drag and drop the rules in a policy into the order you want.
- Add a policy by selecting Add New Okta Sign-On Policy.
Edit an Okta sign-on policy
You can perform the following actions on a single policy. Select the policy in the list to begin.
- Activate or deactivate the selected policy. If you deactivate a policy, it isn't applied to any user, but you can reactivate it later.
- Click Edit to edit the policy.
- Click Delete to delete a policy. You can't delete the default policy.
- Click Add Rule to add a rule to the selected policy. Within a policy, you can activate, deactivate, edit, or delete a rule.
- To view details about a rule, click the rule name under Add Rule.
Pre-auth sign on evaluation policy
When users sign in with the AuthN API, their sign-on policies are evaluated before their password or other factor is verified. This evaluation helps to reduce the number of account lockouts that occur across an org.
If the sign-on policy is set to deny, the user's sign-on attempt is rejected with the following generic error: Authentication failed. In this scenario, the counter for failed logins isn't incremented. Instead, a logged event indicates that a pre-auth sign-on policy evaluation was triggered.
- There are no visible UI changes or required setup in the Admin Console to enable this back-end feature.
- This policy doesn't work on initial authentication for newly created accounts that are configured to use JIT provisioning. The end user account must exist in Okta.
- This policy doesn't prevent users from resetting their credentials from a denied location.
Related topics
Configure an MFA enrollment policy