Skip to main content

Sign-In with SAML (Okta)

IceHrm supports Single Sign-On (SSO) using SAML 2.0. This guide walks you through configuring Okta as your identity provider for IceHrm authentication.

Step 1: Configure Okta Application

Create a SAML application in Okta with the following endpoint URLs (replace icehrm.test with your domain):

  • Single Sign On URL: http://icehrm.test/app/login.php
  • Recipient URL: http://icehrm.test/app/login.php
  • Destination URL: http://icehrm.test/app/login.php
  • Audience Restriction: http://icehrm.test

Okta SAML Configuration

Step 2: Assign Users in Okta

Assign users to the Okta application via the Assignments tab.

Okta Assignments

warning

The Name ID of the assigned user must match the email of a user registered in IceHrm.

Step 3: Get Okta Configuration Details

  1. Navigate to your Okta application's Sign On section
  2. Click View Setup Instructions
  3. Copy the configuration values needed for IceHrm

Okta Setup Instructions

Step 4: Configure IceHrm SAML Settings

  1. Log in to IceHrm as an administrator
  2. Navigate to System -> Settings -> SAML
  3. Enter the values from Okta's setup instructions

IceHrm SAML Settings

Step 5: Enable SAML Authentication

In System -> Settings -> SAML, enable the following settings:

  • Set SAML: Enabled to Yes
  • Set SAML: Auto Login to Yes

IceHrm SAML Enable

Result

Once configured, users visiting the IceHrm login page will be automatically redirected to Okta for authentication. After successful login with Okta credentials, they will be redirected back to IceHrm.

Troubleshooting

User cannot log in:

  • Verify the Name ID in Okta matches the user's email in IceHrm
  • Ensure the user is assigned to the Okta application
  • Check that all SAML URLs are correct

Redirect loop:

  • Verify the Single Sign On URL is correct
  • Check that the Audience Restriction matches your IceHrm domain

To disable SAML:

  1. Access IceHrm directly via http://your-domain/app/login.php?saml=0
  2. Log in as admin with local credentials
  3. Disable SAML in settings