Skip to main content

APIsec Azure Entra SSO Configuration

This guide outlines the process for deploying your APIsec SaaS application to the Microsoft Entra application gallery with SAML authentication, with two groups configured for access control.

Prerequisites​

  • Azure Entra ID tenant with administrative access
  • APIsec login with “ADMIN” user role

Implementation Steps​

1. Group Provisioning​

Open Microsoft Entra ID

Microsoft Entra ID overview page

Navigate to Manage > Groups

Groups option under Manage menu

Select "New group"

New group button on Groups page

Basic information

New group basic information form

  1. Create first security group for the APIsec application USER role

    • Group type: Security
    • Group name: APISEC_USER
    • Group description: This group provides access to APIsec as a USER role
    • Membership type: Assigned
  2. Create second security group for the APIsec application ADMIN role

    • Group type: Security
    • Group name: APISEC_ADMIN
    • Group description: This group provides access to APIsec as an ADMIN role
    • Membership type: Assigned
  3. Create third security group for the APIsec application VIEWER role

    • Group type: Security
    • Group name: APISEC_VIEWER
    • Group description: Users with read-only (viewer) access in APIsec.
    • Membership type: Assigned
  4. Create fourth security group for the APIsec application GLOBAL VIEWER role

    • Group type: Security
    • Group name: APISEC_GLOBAL_VIEWER
    • Group description: Users with read-only (viewer) access across all applications in APIsec.
    • Membership type: Assigned

    Note: APISEC_GLOBAL_VIEWER is optional

The APIsec security groups listed in Entra

note

Any member added to one of these groups gains access to your APIsec application with the corresponding role: ADMIN, USER, VIEWER, or GLOBAL VIEWER.

2. Application Registration​

Return to Microsoft Entra ID, and register the application Select "Enterprise applications" from the menu

Enterprise applications menu selection

Basic information.

Enterprise applications basic information page

Create a "New application"

New application button on all applications page

Select "Create your own application"

Create your own application option

Name the application as appropriate for your organization, e.g. APIsecAccess The radio button for "Integrate any other application you don’t find in the gallery (Non-gallery)" should be selected Click the blue "Create" Configure basic properties and redirect URIs From the left navigation, select Manage then open Users and groups

Users and groups under Manage

Select Add user/group

Add user/group button

In Add Assignment

Search for APISEC* (the two groups created above)

Check the boxes for APISEC_ADMIN, and APISEC_USER

Search results for APISEC groups

Select and then "Assign"

note

These two groups are now assigned to the enterprise application

3. Single sign-on Configuration​

In the Enterprise Application, select the Single sign-on menu item from the Manage menu.

Single sign-on menu item under Manage

Select the large SAML button (single sign-on method)

SAML single sign-on method button

Configure the identifiers and reply URLs step by step in the "Set up Single Sign-On with SAML"

Set up Single Sign-On with SAML page

4. APISec Login with SSO and configure​

  • Login to APIsec as a tenant ADMIN (first login may require new password)

    APIsec tenant ADMIN login page

  • Verify the user is ADMIN

    User info showing ADMIN role

  • Click Setup Single Sign On

    Setup Single Sign On navigation option

  • Select Microsoft Entra ID

    Select Microsoft Entra ID provider

note

Copy the Single SignOn Url and the Audience URI

Single SignOn Url and Audience URI values

note

Audience URI: is your Microsoft, Basic SAML Configuration, Identifier (Entity ID)

Take the value from your APIsec SSO setup screen — it is specific to your tenant.

In Entra, Choose "Edit" (Step 1. Basic SAML Configuration) in the Azure portal

Edit button for Basic SAML Configuration

Click Add identifier and paste the Audience URI

Add identifier field with Audience URI

note

Single SignOn Url: is your Microsoft, Basic SAML Configuration, Reply URL (Assertion Consumer Service URL)

Take the value from your APIsec SSO setup screen. It is a different value from the Audience URI — do not reuse one for the other.

In Azure Enterprise Application, Basic SAML Configuration

Click "Add reply URL"

Add reply URL in Basic SAML Configuration

Step 1: Paste your APIsec "Single SignOn Url" as the Entra ID "Reply URL (Assertion Consumer Service URL)", then click "Save".

Step 2: Edit Attributes & Claims in Entra under "Set up Single Sign-On with SAML"

Edit Attributes and Claims section

note

The required claims are:

  • user.userprincipalname
  • user.groups
  • user.displayname
  • user.mail

Attributes and Claims required claim names

Click Add new claim

Name is displayName

Use the Namespace for claims:

http://schemas.xmlsoap.org/ws/2005/05/identity/claims

For Source, the radio button "Attribute" will allow you to select "user.displayname"

Click "Save"

Repeat for email: Click "Add new claim"

Name is "emailaddress"

Use the (same) Namespace for claims:

http://schemas.xmlsoap.org/ws/2005/05/identity/claims

The Source is Attribute "user.primaryauthoritativeemail"

Click "Save"

Manage claim form for emailaddress claim

Delete any additional unnecessary "Additional claims" including surname, givenname. Keep only the Required claim UUID and the Additional claims user.groups, user.displayname, and user.mail.

Claims list after removing unnecessary claims

Select "Add a group claim"

Add a group claim option

The "Group Claims" configuration will open.

Choose "Groups assigned to the application"

Select Source attribute "Cloud-only group display names"

Group Claims source attribute selection

Select "Advanced options" and check "Filter groups"

Attribute to match: "Display name"

Match with String "APISEC" (should match the Group names created above)

Check "Customize the name of the group claim"

Use Name (required): "apisecroles"

Use the (same) Namespace for all claims:

http://schemas.xmlsoap.org/ws/2005/05/identity/claims

Group claim filter and name settings

Click "Save"

The completed SAML Configuration will have these attributes and claims

Completed SAML attributes and claims

Return to your Enterprise Applications

Select your APIsec application, select Manage, and click "Single sign-on"

Single sign-on link in application Manage menu

In Section 3 of SAML-based Sign-on, locate the "App Federation Metadata Url"

Use the convenient "Copy to clipboard" link

App Federation Metadata Url copy link

Click "Copy to clipboard"

Switch to the APIsec application and paste into the "Metadata Url" field Click "Complete"

Metadata Url field and Complete button

Log out of APIsec.

note

Test login with an Entra user provisioned to each of your Entra groups.