> For the complete documentation index, see [llms.txt](https://docs.firefly.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.firefly.ai/detailed-guides/sso-configuration.md).

# SSO Configuration

This guide walks you through configuring Single Sign-On (SSO) with Firefly using your own Identity Provider (IdP).

## Set up the SSO Application

You can configure your SSO integration manually with the assistance of the Firefly Support Team or manage the process using our dedicated Terraform modules. Regardless of the method, the integration involves the following core steps:

* Identity Provider (IdP) Configuration: Create a new SSO application within your IdP (Azure AD or Okta).
* Certificate Procurement: For Okta integrations, please reach out to the Firefly Support Team to receive your required certificate.
* Assignment: Assign your relevant users to the Firefly app within your IdP.
* Metadata Exchange: Extract the SAML metadata from your IdP to finalize the connection.

### Examples

* [Azure AD SSO](https://github.com/gofireflyio/terraform-sso-azure?tab=readme-ov-file#example-usage)
* [Okta SSO](https://github.com/gofireflyio/terraform-sso-okta?tab=readme-ov-file#example-usage)

## Share Your SAML Metadata with Firefly

Please provide us with the SAML metadata URL from your IdP (preferred), or the following details manually:

* Sign in endpoint
* Sign out endpoint
* Signing certificate (PEM format)

## Mapping via IdP Groups (Optional)

Firefly streamlines Role-Based Access Control (RBAC) by synchronizing your internal teams directly with IdP group memberships.

To enable this synchronization, Firefly utilizes a specific naming convention to map IdP groups to RBAC Teams:

* IdP Group Requirement: The group name must use the `firefly-` prefix.
* Mapping Logic: Firefly identifies the target team by stripping the prefix from the IdP group name.
* Example: An IdP group named `firefly-workflows-viewers` will automatically sync with the Firefly team workflows-viewers.

## SCIM Provisioning (Optional)

If you want to enable SCIM provisioning (user/group sync), it must be done via your IdP UI. SCIM configuration details will be provided by Firefly upon request.

## Need Help?

Reach out to our Support Team or email [support@firefly.ai](mailto:help@firefly.ai) for assistance with your SSO configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.firefly.ai/detailed-guides/sso-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
