# Single Sign-On

## Overview

Commanders Act supports SAML 2.0 based Single Sign-On authentication and authorization.

<figure><img src="/files/xgiChQ4uQt6CROph7eKj" alt=""><figcaption><p>Worklfow diagram of the Single Sign-On functionality.</p></figcaption></figure>

## Setup

To setup Single Sign-On Commanders Act requires the metadata.xml of the IDP or following information:

* Single Sign-In Endpoint
* Single Sign-Out Endpoint
* Entity Id of the IDP
* Public key of the IDP (X509 certificate)

Please contact a Commanders Act consultant to initiate the setup. You will then receive a namespace parameter `<name>` and the site id `<id_site>` used in following SAML Endpoints and SAML Attributes.

### SAML Endpoints

Following you will find an overview of the SAML API endpoints used by Commanders Act.

**ACS URL/Endpoint URL**\
<https://platform.commandersact.com/saml2-acs/\\><name>

**Login URL**\
<https://platform.commandersact.com/saml/\\><name>

**SP Entity ID/Partner's Realm**\
commanders-act

### SAML Attributes

Following SAML attributes are currently supported. It is required to send the email attribute.

| Attribute                  | Description          | Type                                                                                                                                                                                        |
| -------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| firstname                  | User first name      | optional, default empty                                                                                                                                                                     |
| lastName                   | User last name       | optional, default empty                                                                                                                                                                     |
| email                      | User email           | **required**                                                                                                                                                                                |
| companyName                | Company name         | optional, default empty                                                                                                                                                                     |
| jobTitle                   | Job title            | optional, default empty                                                                                                                                                                     |
| mobileNumber               | Mobile phone number  | optional, default empty                                                                                                                                                                     |
| lang                       | User language code   | optional, default 'en'                                                                                                                                                                      |
| commandersact\_\<id\_site> | Applied user profile | <p><strong>required</strong>, possible values :</p><ul><li>administrator</li><li>technical</li><li>marketing</li><li>custom</li><li>readOnly</li><li>partnerAdmin</li><li>partner</li></ul> |

Add "administrator|accountmanager" to enable the "Account Manager" permission for the Administrator role.

## FAQ

**How long is the SAML session duration?**\
1440 seconds.

**Which protocol is used for Single Sign-On?**\
SAML 2.0


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.commandersact.com/configure/administration/single-sign-on.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
