> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Applications with OIDC Discovery

> Describes how to use OpenID Connect (OIDC) discovery to configure applications with Auth0 using SDKs.

[OpenID Connect (OIDC) Discovery](https://openid.net/specs/openid-connect-discovery-1_0-final.html#RFC5785) documents contain metadata about the identity provider (Identity Provider (IdP): Service that stores and manages digital identities.) (IdP). Adding discovery to your SDK to point your application to the `./wellknown` endpoint to consume information about your IdP could help configure your integration with the IdP.

Integrating OIDC discovery into your SDK provides:

* Exposed endpoints of the IdP
* Standard [OIDC supported claims and scope](/docs/docs/get-started/apis/scopes/openid-connect-scopes) (this excludes [custom claims](/docs/docs/secure/tokens/json-web-tokens/create-custom-claims) and scopes defined in your tenant)
* Features supported by the IdP

You can configure applications with the [OpenID Connect (OIDC)](https://openid.net/specs/openid-connect-discovery-1_0.html) discovery documents found at: `https://{yourDomain}/.well-known/openid-configuration`.

### Sample response

> [!NOTE]
>
> When [Agent as Principal](/docs/docs/ai-agents-mcp/agent-as-principal) is enabled for your tenant, the discovery document includes the `entity_profiles_supported` metadata field, which lists the client and subject [entity profiles](/docs/docs/secure/tokens/access-tokens/access-token-profiles#claims) the tenant can issue. This field appears on both `/.well-known/openid-configuration` and its `/.well-known/oauth-authorization-server` alias.

### Sample implementation

For example, this is how to configure OIDC middleware for Katana v3 (OWIN):

1. Install the nuget package: **Microsoft.Owin.Security.OpenIdConnect** (v3.x.x)
2. Go to `App_Start\Startup.Auth.cs` and replace your implementation with the following:

## RSA algorithm for JWTs

The OIDC middleware does not support JWTs (JSON Web Token (JWT): Standard ID Token format (and often Access Token format) used to represent claims securely between two parties.) signed with symmetric keys. Make sure you configure your app to use the RSA algorithm using public/private keys.

1. Go to [Dashboard > Settings](https://manage.auth0.com/#/applications/\{YOUR_AUTH0_CLIENT_ID}/settings).
2. Scroll down to **Advanced Settings**.
3. Under the **OAuth** tab, set `RS256` as **Json Web Token(JWT) Signature Algorithm** and click **Save**.

If you have an OIDC Enterprise Connection, you can choose from [additional signing algorithms](/docs/docs/authenticate/enterprise-connections/private-key-jwt-client-auth#configure-private-key-jwt-client-authentication) for Private Key JWT.

With this setting, Auth0 will issue JWTs signed with your private signing key. Your app will verify them with your public signing key.

## Configure applications with OAuth 2.0 Authorization Server Metadata

If your application or SDK references the [OAuth RFC-8414](https://www.rfc-editor.org/rfc/rfc8414) Authorization Server (Authorization Server: Centralized server that contributes to defining the boundaries of a user’s access. For example, your authorization server can control the data, tasks, and features available to a user.) Metadata specification, you can use the OAuth (OAuth 2.0: Authorization framework that defines authorization protocols and workflows.) alias to fetch metadata about the IdP: `/.well-known/oauth-authorization-server`. For example, the [Auth0 Model Context Protocol Server](/docs/docs/get-started/auth0-mcp-server) recommends all OAuth applications reference the OAuth Authorization Server Metadata specification.

## Learn more

* [JSON Web Tokens](/docs/docs/secure/tokens/json-web-tokens)
* [Create Custom Claims](/docs/docs/secure/tokens/json-web-tokens/create-custom-claims)
