> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/devx/5.5/deployment/configuration/iam/authentication/sso-and-saml/onelogin-sso.md).

# Onelogin SSO

> *Groups are case-sensitive and mapped to roles, by name, with OneLogin*

Integrate your user **roles** with Lenses using the Keycloak role names. Create a group in Lenses using the same **case-sensitive** role name as in OneLogin.

For example, if the **Engineers** role is available in OneLogin, create a group with the same name.

## Set up OneLogin IdP <a href="#set-up-onelogin-idp" id="set-up-onelogin-idp"></a>

Lenses is available in the OneLogin Application catalog.

Visit OneLogin’s Administration console. Select *Applications* **>** *Applications* **>** *Add App*

1. Search and select `Lenses`
2. Optionally add a description and click save

## Add Lenses via the Application Catalog <a href="#add-lenses-via-the-application-catalog" id="add-lenses-via-the-application-catalog"></a>

3. In the *Configuration* section set the base **path** from the url of the Lenses installation e.g. `lenses-dev.example.com` ( without the `https://`)
4. Click *Save*

## Download the IdP XML file

5. Use the **More Actions** button
6. Click and download the *SAML Metadata*
7. You will reference this file’s path in the **`security.conf`** configuration file.

{% code title="security.conf" %}

```bash
lenses.security.saml.idp.metadata.file="/path/to/OneLoginIDPMetadata.xml"
```

{% endcode %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.lenses.io/latest/devx/5.5/deployment/configuration/iam/authentication/sso-and-saml/onelogin-sso.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
