MetorialDocs

Use Metorial's OAuth app or register your own with the provider

Start with the OAuth app Metorial registers for you. Register your own when you need your name on the consent screen, your own scopes, or a tenant-only app.

Start with the OAuth app Metorial provides. When you create an integration for a provider that supports it, OAuth credentials are registered automatically and people can connect right away. Register your own OAuth app when the consent screen must show your company, when you need to control the scopes, or when your security team only allows apps registered in your own tenant.

What you'll learn

  • When the managed OAuth app is enough
  • How to add your own app's client ID and secret
  • How to check which app people connect through

Before you start

When each option fits

Metorial's OAuth appYour own OAuth app
SetupNoneYou create the app with the provider
Name on the consent screenThe managed appYour app
ScopesThe integration's default setThe scopes you allow on your app
Tenants that only allow their own appsMay need an admin to approve the appFits
Client secretMaintained by MetorialYou rotate it and update Metorial

Choose before many people connect. A connection is made through one OAuth app.

Use your own app

In the dashboard

Start the credentials

Select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials, and choose the provider.

Register the redirect URI

Copy the Redirect URI Metorial shows and add it to your OAuth app as an allowed redirect URL. Use the exact value.

Enter the client details

Enter a Name, the Client ID and the Client Secret. Check that the listed scopes are allowed on your app, and select Create.

Use them in the integration

When you create the integration, open Auth Credentials and pick the credentials you created.

With the CLI

# Find the provider and see its auth methods and credentials
metorial-admin providers list --search github
metorial-admin providers auth <provider-id>

# Store your OAuth app
metorial-admin providers credentials create \
  --provider-id <provider-id> \
  --name "GitHub OAuth" \
  --config '{"type":"oauth","client_id":"<client-id>","client_secret":"<client-secret>","scopes":["repo","read:user"]}'

# Attach it when you add the provider to an integration
metorial-admin integrations providers create \
  --integration-id <integration-id> \
  --provider-id <provider-id> \
  --provider-auth-method-id <auth-method-id> \
  --provider-auth-credentials-id <credentials-id>

providers auth prints the auth method IDs. providers credentials list --origin custom lists the OAuth apps you added.

Check it worked

Connect the integration as a test user in the portal. The provider's consent screen shows your app's name and the scopes you allowed.

Tokens are stored in Metorial Vault either way and are not passed to the model, the AI client or the person. Some apps, such as Google Workspace and Microsoft 365, need a workspace admin to approve an OAuth app before anyone can connect. The integration page creates a setup link to send to that admin.

To allow OAuth only, open organization settings, MCP Configuration, MCP Auth, and turn on Only allow OAuth authentication methods.

Next steps