OAuth
OAuth allows your customers to connect their AI apps to your business using the account they already have with you. A customer adds your MCP address to their AI app and is sent to your own sign in page, exactly as they would be on your website. Once they have signed in, every request their agent makes reaches your API carrying that customer’s own access token, so the identity, permissions and account rules you already maintain apply to agents without change.
Because your identity provider remains the single source of identity, there is no new credential to issue, deliver or revoke. OAuth works alongside customer keys rather than replacing them, so customers you onboard through the API can continue to connect with a key.
What OAuth provides
- A familiar sign in
Customers connect using the sign in page, credentials and security measures they already know, including any multi factor authentication your provider enforces. - One identity across every channel
The account a customer uses in your app is the same account their agent acts for, so their history, entitlements and preferences carry across. - Your authorisation, unchanged
Your API validates the customer’s token as it would for any client, and your existing rules decide what the customer may do.
Before you begin
You need an identity provider that supports OAuth 2.0, such as Okta or Auth0, a custom MCP domain that is verified, and access to the Integration and Secrets pages in the Mitu dashboard.
Configuring OAuth
Connect your own domain
The address your identity provider returns customers to after they sign in is built from your custom MCP domain, so connect your domain first. Once it is verified, the dashboard shows the redirect URI you need in the next step.
Register Mitu with your identity provider
In your identity provider, register Mitu as a new application and enter the redirect URI shown in the dashboard. Your provider then issues a client ID and a client secret for Mitu.
Store the client secret
Add the client secret under Secrets. It is encrypted when stored and never displayed again, and you select it by name when you configure OAuth, so the value itself never appears in your settings.
Enter your provider's details
Under Integration, choose Your OAuth and complete each setting from the details your provider issued. The settings reference describes every one.
Accept the customer's token in your API
Every request made on behalf of a signed in customer carries their access token in the Authorization header, together with the Mitu signature and the customer’s details.
Verify the request to confirm it came through Mitu, then validate the token as you would for any other client of your API. Your existing authorisation decides what the customer may do.
Settings reference
While customers sign in with OAuth, the other options under Requests from Mitu in your integration are disabled, because the Authorization header carries the customer’s own token. The Mitu signature continues to prove that each request came from Mitu.
Security considerations
- Validate every token
Check the token’s signature, issuer, audience and expiry in your API, exactly as you do for tokens from your own applications. - Keep the client secret in Secrets only
Never place it in code, configuration files or tickets. If it is exposed, issue a new one in your provider and update it under Secrets. - Request only the scopes you need
Agents act with the access the customer granted at sign in, so limit scopes to what your tools genuinely require.
With OAuth in place, your customers bring their agents to your business without creating anything new. Every action their agents take is carried out under the account they already hold with you, governed by the identity provider and authorisation rules you already trust.