Okta Example - Create an Application
You need to create an application that Okta will be doing authentication on behalf of.
Note: You must know the addresses of your Lighthouses before creating the application.
-
In the Okta web console go to Applications - > Applications.
-
Click Create App Integration.
-
Select SAML 2.0.
-
-
Give the application a name: for example, Lighthouse and click Next.
-
For the Single sign on URL enter:
https://{main lighthouse address}/api/v3.7/sessions/saml/sso/okta
-
Select: Use this for Recipient URL and Destination URL
-
Fill out the Other Requestable SSO URLs with the SSO URLs for every Lighthouse address that you want to be able to sign in with, that is, IP addresses and DNS address for both your primary and secondary Lighthouses.
Example:
https://{main lighthouse ip}/api/v3.7/sessions/saml/sso/okta
https://{secondary lighthouse address}/api/v3.7/sessions/saml/sso/okta
https://{secondary lighthouse ip}/api/v3.7/sessions/saml/sso/okta
-
- For the Audience URI (SP Entity ID) enter
lighthouse-okta
-
Set Name ID format to email.
-
Set to email.
-
There are many ways you could configure Okta to populate the LH_Groups attribute, our recommended way is to populate it from and manage it via the user’s Okta groups:
-
Add a Group Attribute Statement:
-
Name: LH_Groups.
-
Name Format: Basic.
-
Filter: Matches Regex .*
-
-
-
Click Next and finish.
IdP Metadata
-
Open your Okta application.
-
Go to More Actions > SAML Metadata. This is the metadata xml file that you will need to configure lighthouse.
Configure Lighthouse
-
Copy the Identity Provider metadata XML to your primary Lighthouse.
-
Using
saml-idp-metadata
on your primary Lighthouse, configure each of your Lighthouses to use your IdP.
For example:
saml-idp-metadata -p {root password} creaUser groupste -m /path/to/okta_metadata.xml -P okta -n "My Okta display name" -l {LH id number}
Groups setup
After this initial setup, you will be able to login as a SAML user.
If you do not already have your own setup in Lighthouse:
-
Login to Lighthouse as a local user (or any non-SAML user) i.e. root.
-
Create the User groups with the Roles and permission that you desire.
-
In Okta go to Directory > Groups.
-
Click Add Group.
-
Enter the Group name that matches a Group name on lighthouse.
-
Open your new group.
-
Go to Manage Apps.
-
Search for your lighthouse app and click Assign.
-
Click Done.
-
Go to Manage People.
-
Search for and click on the users you wish to add to the group.
The assigned users are now able to login to Lighthouse with the permission levels which that group grants them.