Skip to content
Latest (currently 2026.10.0) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentregistry.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Microsoft Entra ID

Page as Markdown

Create the Microsoft Entra ID app registration, API scope, group claims, and redirect URIs required to use Entra ID as the OIDC identity provider for agentregistry.

Solo Enterprise for agentregistry is protected by an identity provider (IdP) so that only authorized users can access, publish, and deploy AI artifacts. This guide walks through creating the app registration that the registry server, UI, arctl CLI, and MCP clients all share, and configuring group claims for role-based access control.

Note

The app registration you create in this guide is for the registry login only. The registry UI, arctl, and MCP clients all sign in through it. It must stay separate from the app registration that a discovery runtime such as Azure AI Foundry or Microsoft Copilot Studio uses to call its own API as a service identity. Do not reuse this app registration for that purpose, and do not reuse a runtime’s app registration for the registry OAuth login flow.

Entra ID configuration

Review the components that are required in Entra ID to set up the OIDC auth flow for Solo Enterprise for agentregistry.

Entra ID resourceConfigurationWhat it’s for
App registration
  • Name: agentregistry
  • Tenant: Single-tenant (AzureADMyOrg)
  • Application ID URI: api://<app-id>
  • Platforms:
    • Single-page application (Authentication) for the registry UI: redirect URI http://localhost:12121/callback
    • Mobile and desktop applications (Authentication), optional: only needed for a local MCP client that you want to be able to connect to the registry MCP server bridge. The MCP client receives its callback on a loopback port, such as http://localhost:53682/mcp-callback
  • Allow public client flows (Authentication > Advanced settings): isFallbackPublicClient: true. Required for the arctl device authorization login, which needs no redirect URI or platform of its own. This is a standalone setting, not part of any platform.
  • Scope: api://<app-id>/agentregistry
  • Token version: v2
  • Claims: groups, with groupMembershipClaims: ApplicationGroup, configured on access and ID tokens
The app registration serves as the client that the registry server, the UI, arctl, and local MCP clients use for the OAuth login flow with Entra ID. No client secret is required as the registry validates tokens against the tenant’s public JWKS endpoint instead. The application ID URI prefixes the agentregistry scope that you create in Step 2.

Entra uses the platform type to decide how a client is allowed to redeem tokens, so the UI and the CLI are configured differently even though they share one app registration. The single-page application platform tells Entra that the registry UI is a browser-based public client, which lets the UI complete the authorization code flow with PKCE and redeem the resulting code for a token directly from JavaScript, across origins, with no client secret. Entra sends the browser back to this platform’s redirect URI after a UI login. Allow public client flows is a separate, top-level setting rather than part of a platform, and it is what lets the arctl CLI use the device authorization grant, which has no browser redirect and so needs no redirect URI or platform of its own. The mobile and desktop applications platform is unrelated to that setting. Add it only if a local MCP client needs a loopback redirect URI.

Every client must request the agentregistry scope for Entra ID to add the application ID to the aud claim. Only JWTs with an aud claim that is set to the application ID are granted access to the registry. To map Entra ID users to roles in the registry, the JWT must also include the groups claim with the group membership information of the user. The registry maps the groups claim value to a corresponding AccessPolicy resource to determine the level of access to the registry.
GroupsAn administrator group, such as Agentregistry Admins. You can optionally create other, non-administrator groups, such as a group that has read or write access to the registry. All groups must be assigned to the enterprise application (service principal).The administrator group maps to the superuser role in Solo Enterprise for agentregistry. Users in this group bypass all AccessPolicy checks and get full access to the registry. A non-administrator group requires a corresponding AccessPolicy to authorize it. For more information, see About access control.
Enterprise application (service principal) role assignmentService principal must set appRoleAssignmentRequired: true, with each group assigned under appRoleAssignedToRestricts sign-in to users from an assigned group. Entra adds the group membership to the groups claim, which the registry server checks against AccessPolicy resources to grant access.

Before you begin

  1. Install the following CLIs.

    • az: Create and inspect the Entra app registration. Sign in with az login.
    • jq: Used as a script wrapper in this guide.
  2. Make sure that you can create app registrations in your Entra tenant, or that a tenant administrator can create one for you. You need the Application Developer role or equivalent.

  3. Save your app name and tenant ID in environment variables. These are used throughout the rest of this guide.

    export AR_APP_NAME=agentregistry
    export TENANT_ID=$(az account show --query tenantId -o tsv)
    export OIDC_ISSUER="https://login.microsoftonline.com/${TENANT_ID}/v2.0"
    echo $OIDC_ISSUER

Step 1: Create the app registration

Create a single-tenant app registration. The registry server, the UI, arctl, and MCP clients all use this app as the client ID during the OAuth flow.

  1. Create the app registration and save its client ID and object ID.

    export AR_APP_ID=$(az ad app create \
      --display-name "${AR_APP_NAME}" \
      --sign-in-audience AzureADMyOrg \
      --query appId -o tsv)
    
    export AR_APP_OBJECT_ID=$(az ad app show --id ${AR_APP_ID} --query id -o tsv)
    echo "Client ID: $AR_APP_ID"

    Example output:

    Client ID: 1a1a1a11-a11a-1111-aa1a-aaa1a1aa11a1
    
    SettingDescription
    --sign-in-audience AzureADMyOrgRestricts sign-in to your own tenant. Multitenant and personal-account audiences are not covered by this guide.
  2. Create the service principal, which is the enterprise application object that Entra uses to evaluate group assignment and consent during the login process. By default, the service principal is created with the appRoleAssignmentRequired: false setting, which allows all users in your organization to log in to the app and receive a valid JWT. You restrict access to your app to specific groups of users in a later step.

    az ad sp create --id ${AR_APP_ID}

    Example output:

    {
      "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#servicePrincipals/$entity",
      "accountEnabled": true,
      "addIns": [],
      "alternativeNames": [],
      "appDescription": null,
      "appDisplayName": "agentregistry",
    ...
    
  3. Set the application identifier URI to assign your app a unique name within your tenant. Any app-specific scopes that you later add append to this URI.

    az ad app update --id ${AR_APP_ID} \
      --identifier-uris "api://${AR_APP_ID}"
  4. Verify that the identifier URI was set successfully.

    az ad app show --id ${AR_APP_ID} --query identifierUris -o tsv

    Example output:

    api://1a1a1a11-a11a-1111-aa1a-aaa1a1aa11a1
    

Step 2: Set up the agentregistry scope

The registry only accepts tokens with an aud (audience) claim that equals your app registration’s client ID ($AR_APP_ID). Entra sets the aud claim based on the permission the client was granted. By default, clients request the openid and profile permissions that map to the Microsoft Graph service and not your app. Because of that, an Entra-issued token is allowed to access the Microsoft Graph service by default, but not Solo Enterprise for agentregistry.

In this step, you define a custom permission for your app registration, a scope named agentregistry. The scope is appended to the application identifier URI that you created earlier and results in api://${AR_APP_ID}/agentregistry. The application identifier URI tells Entra which application owns this permission. If a client requests the agentregistry scope, Entra retrieves the app ID from the application identifier URI and adds it to the aud claim. This way, a user who logs in to Entra with this scope is allowed to access Solo Enterprise for agentregistry.

Note

Clients do not automatically request the agentregistry scope. You must explicitly configure every client to request the scope as part of a request. You learn how to configure the clients to use this scope when you install Solo Enterprise for agentregistry.

  1. Create the agentregistry scope and set the access token version to 2. The registry server expects a v2 token format.

    export AR_SCOPE_ID=$(uuidgen | tr '[:upper:]' '[:lower:]')
    
    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/applications/${AR_APP_OBJECT_ID}" \
      --headers 'Content-Type=application/json' \
      --body "{
        \"api\": {
          \"requestedAccessTokenVersion\": 2,
          \"acceptMappedClaims\": true,
          \"oauth2PermissionScopes\": [
            {
              \"id\": \"${AR_SCOPE_ID}\",
              \"value\": \"agentregistry\",
              \"type\": \"User\",
              \"isEnabled\": true,
              \"adminConsentDisplayName\": \"agentregistry\",
              \"adminConsentDescription\": \"Access Solo Enterprise for agentregistry\"
            }
          ]
        }
      }"
    
    echo $AR_SCOPE_ID
    SettingDescription
    requestedAccessTokenVersion: 2Issues v2 access tokens. A v1 token carries a different issuer and audience shape and is rejected by the registry server.
    acceptMappedClaims: trueAllows the app to accept claims that are produced by claims-mapping policies.
    oauth2PermissionScopes[].value: agentregistryCreates the api://<app-id>/agentregistry scope. Clients request this scope to get a token with the audience claim set to the app registration’s ID.
    type: UserLets a signed-in user consent to this scope themselves, without an administrator having to approve it first. Entra shows the user a consent prompt the first time a client, such as the UI or arctl, requests this scope on their behalf, and issues the token only after the user consents.
  2. Save the full scope string in an environment variable. You later use this value when configuring the registry clients to request this scope.

    export AR_SCOPE="api://${AR_APP_ID}/agentregistry"
    echo $AR_SCOPE

Step 3: Emit group claims

After a token is successfully validated, the registry extracts the role claim from the JWT to determine a user’s permissions. The claim that you want to use for the role can be configured in your Helm values when you install Solo Enterprise for agentregistry.

By default, an Entra token does not include a claim that shows the user’s group membership. However, you can configure Entra to include the built-in groups claim in your token so that the token lists the security groups that the signed-in user belongs to. Entra lists groups by their object ID and not by their display name. A display name can be changed at any time and is not guaranteed to be unique in your tenant, so Entra never puts the name in a token.

To later map a user’s group membership from the groups claim to registry access, you must use the object ID of that group when you define a SuperAdmin principal or when you create a corresponding RBACPolicy resource. For example, to make the members of an admin group SuperAdmins who bypass all policy checks and have full access to every tenant, you set a principal in the rbac.superAdminPrincipals Helm value that matches the groups claim to the object ID of that admin group.

For more information about access control in Solo Enterprise for agentregistry, see About access control and Restrict registry access.

  1. Enable the built-in groups claim on both the access token and the ID token, and select the type of group membership information that you want to include.

    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/applications/${AR_APP_OBJECT_ID}" \
      --headers 'Content-Type=application/json' \
      --body '{
        "groupMembershipClaims": "ApplicationGroup",
        "optionalClaims": {
          "idToken": [{"name": "groups", "essential": false}],
          "accessToken": [{"name": "groups", "essential": false}]
        }
      }'
    SettingDescription
    groupMembershipClaims: ApplicationGroupEmits only the groups that are assigned to this enterprise application.
    optionalClaims.accessTokenAdds the groups claim to the access token, which is the token that the registry server validates. This entry is required.
    optionalClaims.idTokenAdds the groups claim to the ID token, which the UI reads to render the signed-in user’s roles.
  2. Confirm that the groups claim is added to the access and ID token settings.

    az ad app show --id ${AR_APP_ID} \
    --query "{groupMembershipClaims: groupMembershipClaims, optionalClaims: optionalClaims}" \
    -o json

    Example output:

    {
      "groupMembershipClaims": "ApplicationGroup",
      "optionalClaims": {
        "accessToken": [{"additionalProperties": [], "essential": false, "name": "groups", "source": null}],
        "idToken": [{"additionalProperties": [], "essential": false, "name": "groups", "source": null}],
        "saml2Token": []
      }
    }
    
  3. Create the admin group that you want to make a SuperAdmin group in the registry, and save its object ID. If you already have a group you want to use instead, skip this command and look up its object ID with az ad group show --group "<your-group-name>" --query id -o tsv.

    export AR_ADMIN_GROUP_ID=$(az ad group create \
      --display-name "Agentregistry Admins" \
      --mail-nickname agentregistry-admins \
      --query id -o tsv)
    echo $AR_ADMIN_GROUP_ID

Warning

Entra omits the groups claim and substitutes a _claim_names group overage indicator when a user belongs to more than 200 groups. The registry cannot resolve an overage indicator, so the user gets no roles. The ApplicationGroup mode that is used in this guide keeps you under that limit as only the groups that you explicitly assign to this enterprise application are counted. If you use the SecurityGroup mode instead, a user’s tenant-wide group count is compared against the 200-group limit. Note that if you exceed the group limit, logins fail. Solo Enterprise for agentregistry does not provide a workaround for such cases.

Step 4: Register the redirect URIs

Configure the redirect URL that you want Entra to send clients back to after a successful login. In Entra, you don’t set a redirect URI directly on the app registration. Instead, you add it under a platform, a category that tells Entra what kind of client is making the request. Different clients need different platforms.

Review the platforms that you create and the registry client they correspond to:

ClientEntra platformRedirect URI
Registry UISingle-page application (SPA)http://localhost:12121/callback
arctl device authorization loginNone. Requires only isFallbackPublicClient: true.None
Local MCP client that receives its callback on a loopback portMobile and desktop applicationshttp://localhost:53682/mcp-callback

Warning

A localhost SPA redirect URI and a loopback mobile and desktop redirect URI must not use the same path, because Entra ignores the port when it matches a localhost redirect URI. http://localhost:12121/callback and http://localhost:53682/callback are the same URI for matching purposes. Entra picks one of them arbitrarily and applies that entry’s platform behavior to the request, so the loopback entry can capture the UI’s callback and treat the browser as a native client. The login then fails with AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type.

This guide therefore puts the loopback MCP callback on /mcp-callback rather than /callback. Distinguish localhost redirect URIs by path, never by port. The conflict does not arise once the UI is served from an HTTPS hostname, because only localhost URIs match with the port ignored.

  1. Register the SPA redirect URI for the registry UI. The UI completes the authorization code flow with PKCE at the /callback path. When you later expose the registry server over HTTPS in production, you add your public hostname’s callback URL as an additional entry. For more information, see Expose the registry over HTTPS.

    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/applications/${AR_APP_OBJECT_ID}" \
      --headers 'Content-Type=application/json' \
      --body '{
        "spa": {
          "redirectUris": ["http://localhost:12121/callback"]
        }
      }'
  2. Enable the public client flow to allow the arctl device authorization login. If you also use a local MCP client that receives its OAuth callback on a loopback port, register that callback at the same time, on a path other than /callback.

    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/applications/${AR_APP_OBJECT_ID}" \
      --headers 'Content-Type=application/json' \
      --body '{
        "isFallbackPublicClient": true,
        "publicClient": {
          "redirectUris": ["http://localhost:53682/mcp-callback"]
        }
      }'

    Tip

    If your MCP client cannot change its callback path off /callback, put it on a separate app registration instead.

  3. Verify that both platforms are configured on your app registration, and that no loopback redirect URI shares the /callback path with the SPA entry.

    az ad app show --id ${AR_APP_ID} \
    --query "{isFallbackPublicClient: isFallbackPublicClient, spaRedirectUris: spa.redirectUris, publicClientRedirectUris: publicClient.redirectUris}" \
    -o json

    Example output:

    {
      "isFallbackPublicClient": true,
      "publicClientRedirectUris": [
        "http://localhost:53682/mcp-callback"
      ],
      "spaRedirectUris": [
        "http://localhost:12121/callback"
      ]
    }
    

Optional: Create a separate app registration for an MCP client

If your MCP client requires the OAuth callback path to be exactly /callback, you must create a separate app registration to serve this client to avoid a collision with the UI’s localhost SPA redirect URI.

  1. Create the app registration and its service principal.

    export AR_MCP_APP_ID=$(az ad app create \
      --display-name "${AR_APP_NAME}-mcp" \
      --sign-in-audience AzureADMyOrg \
      --query appId -o tsv)
    
    export AR_MCP_APP_OBJECT_ID=$(az ad app show --id ${AR_MCP_APP_ID} --query id -o tsv)
    
    az ad sp create --id ${AR_MCP_APP_ID}
  2. Enable public client flows and register the MCP client’s loopback redirect on its own /callback path. Because this is a separate app registration, its /callback path no longer collides with the UI’s SPA redirect URI.

    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/applications/${AR_MCP_APP_OBJECT_ID}" \
      --headers 'Content-Type=application/json' \
      --body '{
        "isFallbackPublicClient": true,
        "publicClient": {
          "redirectUris": ["http://localhost:53682/callback"]
        }
      }'
  3. Configure the MCP client with this second client ID by using the --client-id flag as described in the Connect an MCP client guide. For example, for Claude Code:

    claude mcp add --transport http agentregistry "${MCP_SERVER_URL}" \
      --client-id "${AR_MCP_APP_ID}"

    The client still requests the api://${AR_APP_ID}/agentregistry scope that the first registration owns, so the token it receives carries the same audience that the registry requires. This approach works only for a client that supports pointing at a pre-registered OAuth client, such as Claude Code or Codex. A client that only supports dynamic client registration, such as Cursor, Visual Studio Code, or Kiro, cannot use a second app registration this way.

Step 5: Restrict who can sign in

By default, any user in your tenant can sign in to the app and then be authorized to access Solo Enterprise for agentregistry. To restrict sign-in to specific groups at the IdP, require assignment on the enterprise application and assign only the groups you want to have access.

  1. Get the ID of the service principal that you created earlier and set appRoleAssignmentRequired to true. This setting turns on the role assignment check in Entra, so Entra only issues a token to a user if that user, or a group they belong to, has an explicit role assignment to this service principal.

    export AR_SP_ID=$(az ad sp show --id ${AR_APP_ID} --query id -o tsv)
    
    az rest --method PATCH \
      --uri "https://graph.microsoft.com/v1.0/servicePrincipals/${AR_SP_ID}" \
      --headers 'Content-Type=application/json' \
      --body '{"appRoleAssignmentRequired": true}'
  2. Assign the admin group to the application.

    az rest --method POST \
      --uri "https://graph.microsoft.com/v1.0/servicePrincipals/${AR_SP_ID}/appRoleAssignedTo" \
      --headers 'Content-Type=application/json' \
      --body "{
        \"principalId\": \"${AR_ADMIN_GROUP_ID}\",
        \"resourceId\": \"${AR_SP_ID}\",
        \"appRoleId\": \"00000000-0000-0000-0000-000000000000\"
      }"

    The all-zero appRoleId is Entra’s default access role, which is used when an application defines no app roles of its own.

  3. Review your Entra configuration before you continue with installing Solo Enterprise for agentregistry.

    # Verify the app registration configuration.
    az ad app show --id ${AR_APP_ID} --query "{
      displayName: displayName,
      appId: appId,
      signInAudience: signInAudience,
      identifierUris: identifierUris,
      tokenVersion: api.requestedAccessTokenVersion,
      scopes: api.oauth2PermissionScopes[].value,
      groupMembershipClaims: groupMembershipClaims,
      optionalClaims: optionalClaims,
      publicClient: isFallbackPublicClient,
      spaRedirectUris: spa.redirectUris,
      loopbackRedirectUris: publicClient.redirectUris
    }" -o json
    
    # Verify that you enabled role assignment for the service principal. 
    az ad sp show --id ${AR_SP_ID} --query "{assignmentRequired: appRoleAssignmentRequired}" -o json
    
    # List the admin group that you added to the enterprise application.
    az rest --method GET \
      --uri "https://graph.microsoft.com/v1.0/servicePrincipals/${AR_SP_ID}/appRoleAssignedTo" \
      --query "value[].principalDisplayName" -o tsv

    Example output:

    {
      "appId": "1a1a1a11-a11a-1111-aa1a-aaa1a1aa11a1",
      "displayName": "agentregistry",
      "groupMembershipClaims": "ApplicationGroup",
      "identifierUris": [
        "api://1a1a1a11-a11a-1111-aa1a-aaa1a1aa11a1"
      ],
      "loopbackRedirectUris": [
        "http://localhost:53682/mcp-callback"
      ],
      "optionalClaims": {
        "accessToken": [
          {
            "additionalProperties": [],
            "essential": false,
            "name": "groups",
            "source": null
          }
        ],
        "idToken": [
          {
            "additionalProperties": [],
            "essential": false,
            "name": "groups",
            "source": null
          }
        ],
        "saml2Token": []
      },
      "publicClient": true,
      "scopes": [
        "agentregistry"
      ],
      "signInAudience": "AzureADMyOrg",
      "spaRedirectUris": [
        "http://localhost:12121/callback"
      ],
      "tokenVersion": 2
    }
    {
     "assignmentRequired": true
    }
    
    Agentregistry Admins
    

Troubleshooting

Review common errors that you might run into as you are setting up Entra ID as your OIDC provider.

SymptomCauseFix
The browser signs in to Entra, returns to /callback, and then fails in the console with AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-typeA loopback entry in publicClient.redirectUris uses the same path as the localhost SPA redirect URI, and Entra ignores the port when matching localhost URIs. Or, the origin that serves the UI is not registered on the SPA platform at all.Move the loopback MCP callback to a different path, such as /mcp-callback, or to its own registration. Confirm that the exact origin serving the UI is listed in spa.redirectUris. See Step 4.
AADSTS50011: The redirect URI ... does not matchThe redirect URI is not an exact match, or it is registered on the wrong platform.Register the UI callback under spa.redirectUris, matching the scheme, host, and path exactly.
AADSTS50105: The signed in user is not assigned to a roleAssignment is required and the user’s group is not assigned to the enterprise application.Assign the group as described in Step 5, or set appRoleAssignmentRequired to false.
arctl user login reports that device authorization is not supportedPublic client flows are disabled on the app registration.Set isFallbackPublicClient to true, as described in Step 4.
401 Unauthorized on every registry call, even right after a successful loginThe token’s aud claim is a Microsoft Graph identifier because the client requested only the openid and profile scopes.Configure the client to request the api://${AR_APP_ID}/agentregistry scope, as described in Step 2.
Login succeeds but the user has no permissionsThe groups claim is missing, or the SuperAdmin principal or RBACPolicy matches a group display name.Confirm that groups is an optional claim on the access token, and set the value in rbac.superAdminPrincipals or in the RBACPolicy to the group’s object ID. See Step 3.

Next steps