Configure SAML 2.0 SSO
This document walks you through the process of setting up SAML 2.0 Single-Sign On
(SSO) for Juniper Apstra. This process uses Okta as the Identity Provider (IdP), but Juniper
Apstra supports other IdPs such as Active Directory or Google Ping.
SAML 2.0 SSO Workflow
Follow these high level steps to configure SAML 2.0 SSO with Okta.
Create an SSO Provider Role Mapping
-
From the Juniper Apstra GUI, select the External Systems dropdown
> Providers > Provider Role Mapping .
-
Click the Edit icon at the top right.
The Edit Role Mappings window displays.
-
Click Add mapping.
-
To create an admin role mapping, click the dropdown menu and select
administrator.
-
Enter a group name that you want to have admin privileges. In this example,
we enter "admin_group".
This admin role maps to the corresponding group we create within
Okta.
-
Click Update.
The new Apstra Role to Provider Group role mapping
displays.
Create a New App Integration in Okta
Follow these steps to set up Juniper Apstra as an app
integration to work with Okta. Configure SAML 2.0 and SSO parameters for the desired
SSO behavior.
-
From the Juniper Apstra GUI, select the External Systems dropdown
> Providers > SSO Providers > Create SSO
Provider.
The Create SSO Provider window displays.
-
Enter a Provider name.
-
From your Okta dashboard, select the Applications dropdown >
Applications > Create App Integration.
The Create a new app window displays.
-
Select SAML 2.0 and click Next.
-
Enter an App Name and click Next.
The SAML Settings window displays.
-
Copy and paste the Single sign-on URL from the Create SSO Provider window
in the Apstra GUI.
-
Copy and paste the Audience URI (SP Entity ID) from the Create SSO Provider
window in the Apstra GUI.
-
Add attribute statements, or user fields Okta sends to Juniper Apstra after
a successful authentication. Apstra recognizes these fields as Okta IdP
credentials.
user.firstName Returns the first name of the user.
user.lastName Returns the last name of the user.
-
Add group attribute statements for Apstra to recognize.
For example, you might only want groups with an “admin_” prefix to be
able to authenticate.
-
10. Click Next.
-
(Optional) Provide additional feedback.
-
Click Finish.
Your new app integration displays.
-
Under Metadata details, copy and paste the following into the corresponding
fields of the Create SSO Provider window in the Apstra GUI.
- Sign on URL
- Issuer URL
- Signing Certificate (Certificate)
-
Click Create.
Your new Okta IdP displays in the SSO provider list.
-
To verify that SSO is configured, log out of Juniper Apstra. A Sign in with
SSO link should display in the login screen.
Assign Your New Okta Integration to Users
Assign users to your Juniper Apstra app integration
with Okta.
-
Select Applications > Applications > your new app
integration.
-
Select the Assignments tab.
-
Click the Assign dropdown > Assign to People.
The Assign to People window displays.
-
Select Assign next to a user.
-
Ensure the username is correct and click Save and Go Back.
-
Repeat this process for each user you want to have SSO authentication, then
click Done.
The assigned people appear the in the People list.
Assign Your New Okta Integration to User Groups
Assign groups of users to the Juniper Apstra app
integration with Okta.
-
From the Assignments tab, click the Assign dropdown > Assign
to Groups.
The Assign to Groups window displays.
-
Select Assign next to each user group you want to have SSO
authentication.
-
Click Done.
The assigned user groups appear in the Groups list.
-
(Optional) To verify and edit specific People or Group assignments, select
the Directory dropdown, then select the People or Group
tab and click the username or user group you want to edit.
-
To review the settings and assignments of your new Okta integration, click
the General tab.
Verify That SSO Configuration Was Successful
-
Sign out of your Juniper Apstra instance. On the login screen, click
Sign in With SSO.
You are redirected to an Okta login page.
-
Enter credentials for an assigned user and click Sign in.
You are prompted to provide further authentication with the Okta
Verify app. After successful authentication, you are redirected to the
Juniper Apstra GUI.
-
Select the profile icon at the bottom left of the page to review
profile details.
Under User profile, note the Roles field.
-
Select External Systems > Providers > SSO
Providers.
Note that depending on configured role mapping, you may or may not have
access to this page. If you are assigned to a user group with administrator
role, you can access the SSO Providers page.
Your new Okta integration is visible in the list, and should have an
On Active toggle.