Skip to main content
This guide provides comprehensive instructions to configure SAML-based Single Sign-On (SSO) in Prowler Cloud. This configuration allows users to authenticate using the organization’s Identity Provider (IdP). This document is divided into two main sections:
  • User Guide: For organization administrators to configure SAML SSO through Prowler Cloud.
  • Developer and Administrator Guide: For developers and system administrators running Prowler Local Server instances, providing technical details on environment configuration, API usage, and testing.

User Guide Configuration

Follow these steps to enable and configure SAML SSO for an organization.

Key Features

Prowler can be integrated with SAML SSO identity providers such as Okta to enable single sign-on for the organization’s users. The Prowler SAML integration currently supports the following features:
  • IdP-Initiated SSO: Users can initiate login from their Identity Provider’s dashboard.
  • SP-Initiated SSO: Users can initiate login directly from the Prowler login page.
  • Just-in-Time Provisioning: Users from the organization signing into Prowler for the first time will be automatically created.
Deactivate SAMLIf the SAML configuration is removed, users who previously authenticated via SAML will need to reset their password to regain access using standard login. This occurs because accounts no longer have valid authentication credentials without the SAML integration.

Prerequisites

  • Administrator access to the Prowler organization is required.
  • Administrative access to the SAML 2.0 compliant Identity Provider (e.g., Okta, Azure AD, Google Workspace) is necessary.

Configuration Steps

Step 1: Access Profile Settings

To access the account settings, click the “Account” button in the top-right corner of Prowler Cloud, or navigate directly to https://cloud.prowler.com/profile (or http://localhost:3000/profile for local setups). Access Profile Settings

Step 2: Enable SAML Integration

On the profile page, find the “SAML SSO Integration” card and click “Enable” to begin the configuration process. Enable SAML Integration The next section explains how to configure the IdP settings based on the selected Identity Provider.

Step 3: Configure the Identity Provider (IdP)

Choose a Method:
  • Use Generic Method for any SAML 2.0 compliant Identity Provider or when you need custom configuration.
  • Use Okta App Catalog if you’re using Okta and want a simplified setup process with pre-configured settings.
Prowler Cloud displays the SAML configuration information needed to configure the IdP. Use this information to create a new SAML application in the IdP.
  1. Assertion Consumer Service (ACS) URL: The endpoint in Prowler that will receive the SAML assertion from the IdP.
  2. Audience URI (Entity ID): A unique identifier for the Prowler application (Service Provider).
To configure the IdP, copy the ACS URL and Audience URI from Prowler Cloud and use them to set up a new SAML application.IdP configuration
IdP ConfigurationThe exact steps for configuring an IdP vary depending on the provider (Okta, Azure AD, Google Workspace, etc.). Please refer to the IdP’s documentation for instructions on creating a SAML application. For SSO integration with Azure AD / Entra ID, see our Entra ID configuration instructions. For Google Workspace, see our Google Workspace configuration instructions.
Configure Attribute Mapping in the IdPFor Prowler Cloud to correctly identify and provision users, configure the IdP to send the following attributes in the SAML assertion:Fallback Role Without userTypeIf userType is not defined, the user’s existing roles are left unchanged. Users without an existing role in that tenant receive a least-privilege read_only fallback role. If read_only already belongs to a role with different permissions, Prowler Cloud checks suffixed names in order, starting with read_only_0. It reuses the first role with the fallback permissions or creates the first available name. A Prowler administrator can then assign the appropriate role through the RBAC Management tab.
IdP Attribute MappingNote that the attribute name is just an example and may be different depending on the IdP. For instance, if the IdP provides a division attribute, it can be mapped to userType.IdP configuration
Single-Value userType RequiredMap userType to an IdP attribute that always contains a single value. If the IdP sends multiple values, Prowler Cloud uses only the first value and does not assign multiple roles or select the highest-privilege role.
Dynamic UpdatesProwler Cloud updates these attributes each time a user logs in. Any changes made in the Identity Provider (IdP) will be reflected when the user logs in again.

Step 4: Upload IdP Metadata to Prowler

Once the IdP is configured, it provides a metadata XML file. This file contains the IdP’s configuration information, such as its public key and login URL. To complete the Prowler Cloud configuration:
  1. Return to the Prowler SAML configuration page.
  2. Enter the primary email domain for the organization (e.g., mycompany.com). Prowler Cloud uses this domain to generate the Assertion Consumer Service (ACS) URL. Every configured domain can identify users who authenticate through this SAML configuration.
  3. Upload the metadata XML file downloaded from the IdP.
Configure Prowler with IdP Metadata

Step 5: Save and Verify Configuration

Click the “Save” button to complete the setup. The “SAML SSO Integration” card will now display an “Enabled” status, indicating the configuration is complete and enabled. Verify Integration Status

Add Multiple SAML Domains

Prowler Cloud supports one primary domain and up to 19 additional verified email domains in the same SAML configuration. Users from every configured domain authenticate through the same Identity Provider (IdP), so separate SAML applications are not required for each domain.
A SAML configuration supports up to 20 email domains in total. One domain is required as the primary domain, leaving 19 slots for additional domains. Each subdomain counts as a separate additional domain. For example, partners.example.com counts separately from example.com.
The ACS URL always uses the primary domain. Configure this single ACS URL in the IdP even when the SAML configuration includes additional domains. To add domains to a new or existing SAML configuration:
  1. Enter the domain in Additional Email Domains.
  2. Click Add. Each additional domain must be unique and must differ from the primary domain.
  3. Repeat these steps for every domain that must share the configuration.
  4. Click Save for a new configuration or Update for an existing configuration.
Prowler Cloud SAML configuration with multiple additional email domains To remove an additional domain, click the remove button next to the domain, then click Update. Users from a removed domain can no longer start SAML authentication through this configuration.

Remove SAML Configuration

SAML SSO can be disabled by removing the existing configuration from the integration panel. Remove SAML configuration

IdP-Initiated SSO

Once SAML SSO is configured, users can access Prowler Cloud directly from their Identity Provider’s dashboard:
  1. Navigate to the IdP dashboard or portal
  2. Click the Prowler Cloud application tile
  3. The system automatically authenticates users and redirects them to Prowler Cloud
This method is convenient for users who primarily work from the IdP portal and prefer a seamless single-click access.

SP-Initiated SSO

Users can also initiate the login process directly from Prowler’s login page:
  1. Navigate to the Prowler login page
  2. Click “Continue with SAML SSO” Prowler Cloud login page with the "Continue with SAML SSO" button
  3. Enter their email address from the configured domain SAML SSO login form asking for the email address
  4. The system redirects users to the IdP for authentication
  5. After successful authentication, users are returned to Prowler Cloud
This method is useful when users bookmark Prowler or navigate directly to the application.

Developer and Administrator Guide

This section provides technical details for developers and administrators of Prowler Local Server instances.

Environment Configuration

For Prowler Local Server deployments, several environment variables must be configured to ensure SAML SSO functions correctly. These variables are typically set in an .env file. After modifying these variables, the Prowler API must be restarted for the changes to take effect.

SAML API Reference

Prowler provides a REST API to manage SAML configurations programmatically.
  • Endpoint: /api/v1/saml-config
  • Methods:
    • GET: Retrieve the current SAML configuration for the tenant.
    • POST: Create a new SAML configuration.
    • PATCH: Update an existing SAML configuration.
    • DELETE: Remove the SAML configuration.
API DocumentationFor detailed information on using the API, refer to the Prowler API Reference.

SAML Initiate Endpoint

  • Endpoint: POST /api/v1/accounts/saml/initiate/
  • Description: This endpoint initiates the SAML login flow. It takes an email address, determines if the domain has a SAML configuration, and redirects the user to the appropriate IdP login page. It is primarily designed for browser-based flows.

Testing SAML Integration

Follow these steps to test a SAML integration in a development environment.

1. Expose the Local Environment

Since the IdP needs to send requests to the local Prowler instance, it must be exposed to the internet. A tool like ngrok can be used for this purpose. To start ngrok, run the following command:
This command provides a public URL (e.g., https://<random-string>.ngrok.io) that forwards to the local server on port 8080.

2. Update DJANGO_ALLOWED_HOSTS

To allow requests from ngrok, add its URL to the DJANGO_ALLOWED_HOSTS environment variable.

3. Configure the IdP

When configuring the IdP for testing, use the ngrok URL for the ACS URL: https://<your-ngrok-url>/api/v1/accounts/saml/<YOUR_DOMAIN>/acs/

4. Configure Prowler via API

To create a SAML configuration for testing, use curl. Replace placeholders with actual data.

5. Initiate Login Flow

To test the end-to-end flow, construct the login URL and open it in a browser. This starts the IdP-initiated login flow. https://<your-ngrok-url>/api/v1/accounts/saml/<YOUR_DOMAIN>/login/ If successful, the user will be redirected back to the Prowler application with a valid session.