# Single Sign-On

Nara supports Single Sign-on (SSO) for users to simplify the process of providing secure access to users.

This section covers the different options supported to integrate Nara with an Identity Provider (IdP) to authenticate user logins.

## Nginx with Oauth2-proxy

In order to integrate Nara with an IdP we have taken the approach of using nginx (<https://nginx.org/>) as a reverse proxy with authentication handled by oauth2-proxy (<https://oauth2-proxy.github.io/oauth2-proxy/>).

The Nara application itself consists of a node.js application which accepts connections on port 443 and starts processes for authenticated users on demand. These processes communicate with the node.js application over a variety of ports using the web sockets protocol which are ultimately fed through the port 443 connection to the client.

The following diagram illustrates the interfaces between these components:

<div align="left"><figure><img src="/files/cwZNyd9X8nHVBkAWYIaB" alt="" width="563"><figcaption></figcaption></figure></div>

Currently Nara works with the following IdPs - click on the links to find configuration examples :

* [Microsoft Entra](/configuration/single-sign-on/microsoft-entra.md)


---

# 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://docs.nara.stream/configuration/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.
