Skip to content

Authio

Identity for your product and for the AI agents that use it

OAuth 2.0 and OpenID Connect per realm, hosted sign-in with passkeys, attack protection that acts on its own and authorization for MCP servers. Your first token in minutes.

npm i @hyper.authio/provider-nextauth

Every account starts on a free trial, with no credit card.

Sign-in

web-app
  1. PasswordRequired
  2. PasskeyPreferred
  3. Authenticator appOptional
  4. Mailed codeOptional
  5. TermsRequired

Access token

access_token
alg
"PS256"
typ
"at+jwt"
iss
".../realms/acme-prod"
aud
"https://mcp.acme.example/mcp"
acr
"2"
amr
["pwd", "otp"]
org_id
"org_7f3c"
act
{ "sub": "agent-ci" }

Live

Authentication events as they arrive
  1. 14:02:41Password and authenticator appPassword and authenticator appamr pwd otpacr 2client web-app
  2. 14:02:38PasskeyPasskeyamr swk useracr 3
  3. 14:02:30Refresh token replayed — session endedRefresh token replayed — session endedclient mobile-app
  4. 14:02:17Federated sign-inFederated sign-inamr fedidp google

Everything a production sign-in needs

Hosted, per realm and configured per application. Your apps speak standard OAuth and OpenID Connect; Authio does the rest.

Every realm is a complete OIDC provider

Its own issuer, discovery document, signing keys and sessions. A token issued in one realm never verifies in another.

acme-prod
iss
/realms/acme-prod
kid
ps256-2611
acme-staging
iss
/realms/acme-staging
kid
es256-2611
refused here

iss /realms/acme-prod

Sign-in composed per application

Password, mailed code, passkey, authenticator app and terms, each one required, preferred or optional. Consistency rules refuse any mix that would lock someone out.

web-app
  1. PasswordRequired
  2. PasskeyPreferred
  3. Authenticator appOptional
  4. Mailed codeOptional
  5. TermsRequired

Tokens in the shape each app needs

Seven grants, twelve signing algorithms, nested JWE, opaque reference tokens and a lightweight access token, chosen per application.

access_token
alg
"PS256"
typ
"at+jwt"
iss
".../realms/acme-prod"
aud
"https://mcp.acme.example/mcp"
acr
"2"
amr
["pwd", "otp"]
org_id
"org_7f3c"
act
{ "sub": "agent-ci" }

Also in the platform

Authio AI works with you in the console

Ask in your own words. The access agent searches the documentation and your account, shows what it is doing while it answers and takes you to the right screen. Nothing changes until you confirm it on a card.

It follows your pointer and shows each phase of the conversation: it thinks, searches, writes and cheers.

Authio AI

Demo
Ready to help

How can I help?

Pick a question below to watch the agent think, search and answer.

Pick a question

A demo with example data, without calling the AI; in the console, it answers from your account.

Documentation, integration and navigation come with every plan, with a number of questions a month set by the plan. Reading your account and proposing actions needs the AI advisor in the plan.

Give AI agents access, not your passwords

Authio is the authorization server for your MCP servers and the agents that call them: tokens addressed to one server, delegation that only narrows and third-party accounts that never leave the vault.

The whole MCP authorization flow, built in

The agent finds Authio from your server’s 401 (RFC 9728), signs the person in with PKCE and comes back with a token addressed to that one server (RFC 8707). Any other server refuses it.

  1. 1
    AI agent → MCP server
    POST /mcp, no token
  2. 2
    MCP server → AI agent
    401 · resource_metadata
  3. 3
    AI agent → Authio
    sign in with PKCE + resource
  4. 4
    Authio → AI agent
    token, aud = the MCP server
  5. 5
    AI agent → MCP server
    tool call with Bearer
  6. 6
    MCP server → Authio
    introspect: still active?
  7. 7
    MCP server → Authio
    token exchange for github
  8. 8
    Authio → MCP server
    the person’s GitHub token
  9. 9
    MCP server → GitHub
    GET /user/repos
  10. 10
    MCP server → AI agent
    tool result
An agent reaches a protected MCP server: it discovers Authio, signs the person in, and its server trades for a GitHub token only when a tool needs one.Four parties are drawn side by side: an AI agent, an MCP server, Authio and GitHub. The agent calls the MCP server without a token and receives a 401 naming the server’s metadata, which leads it to Authio. The agent signs the person in at Authio with PKCE and names the MCP server as the resource, and receives a token whose audience is that server. It calls a tool with the token; the MCP server asks Authio whether the token is still active. To reach GitHub, the MCP server exchanges the person’s token at Authio for their GitHub token, calls GitHub, and returns the tool’s result to the agent.
  1. POST /mcp, no token
  2. 401 · resource_metadata
  3. sign in with PKCE + resource
  4. token, aud = the MCP server
  5. tool call with Bearer
  6. introspect: still active?
  7. token exchange for github
  8. the person’s GitHub token
  9. GET /user/repos
  10. tool result

Protect an MCP server in a few lines

Discovery, the 401 challenge, offline verification, audience and per-tool checks: one package for Node.js, one for ASP.NET Core.

server.tsTypeScript
import { createAuthio, requireScope } from '@hyper.authio/mcp'
import { authioMetadataRouter, requireAuthioToken } from '@hyper.authio/mcp/express'

const authio = await createAuthio({
  issuer: 'https://auth.example.com/realms/acme',
  resource: 'https://mcp.example.com/mcp',
  clientId: 'mcp-server',
  tokenEndpointAuthMethod: 'client_secret_basic',
  clientSecret: process.env.MCP_CLIENT_SECRET,
  requiredScopes: ['mcp:tools'],
  introspection: 'activeCheck',
})

const tools = authio.protect(server)
tools.registerTool(
  'list_repositories',
  { description: 'Lists repositories', requires: requireScope('repos:read') },
  async (extra) => ({ content: [{ type: 'text', text: extra.user.subject }] }),
)

app.use(authioMetadataRouter(authio)) // RFC 9728 metadata
app.post('/mcp', requireAuthioToken(authio), handleMcp)

Delegation that only narrows

An agent acts on someone’s behalf under a grant they can withdraw: up to three hops and 365 days, and every token can only ask for less than the one before it. The chain travels in the act claim.

The grant somebody wrote
orders:read orders:write profile:read
passed on at most twice
The person
signed in — holds all three scopes
The agent
acts for them — asked for two
A further hop
exchanged again — one left
Asks for more
refused, and told which scope
Withdrawing the grant reaches every hop at once: they all name it.
Each token says who acted (act) and under which grant (delegation_id).
A delegation, drawn as the one property that defines it: every hop holds less than the one before it.A grant is drawn above a stack of four bars. The first bar is the token the person holds, at full width. Below it the agent holds a shorter bar, and below that a further hop holds a shorter one still. The fourth bar reaches wider than the hop above it and is stopped before it arrives, because a delegation may only narrow. Withdrawing the grant reaches every bar at once, since each one names the same grant.
  1. An administrator writes a grant naming the scopes an agent may act within and how often the token may be passed on.
  2. The person signs in and their application holds a token carrying every scope the grant allows.
  3. The agent presents that token with its own credential and receives a narrower one, naming itself as the actor and the grant it acts under.
  4. A hop asking for more than the token it was given is refused and told which scopes lay outside it. Withdrawing the grant stops every token in the chain, because each one carries the same grant identifier.

Connected accounts, kept in a vault

People connect GitHub, Google Drive, Slack and more once. Your MCP server trades its token for theirs (RFC 8693) and never sees a refresh token.

Providers ready to connect
  • GitHub
  • GitLab
  • Google Drive
  • OneDrive
  • Dropbox
  • Slack
  • Notion
  • Atlassian
  • Linear
  • Any OAuth 2.0 provider

Operate Authio from your agent

Authio is itself an MCP server: 33 tools to read and change clients, roles, groups, scopes, people and realms, with your console permissions. Every change shows a preview first and applies only with its confirmation code.

Through the Authio MCP server
  1. Let people from acme.example sign themselves up on web-app
  2. update_clientPreview — nothing has changed yet
    signUpMode: "AllowedDomains"
    signUpAllowedDomains: "acme.example"

    Confirmation code, valid for 5 minutesKQMXTRBA

  3. Applied, and recorded in the audit trail under the mcp channel

MCP integration and connected accounts are plan features; the resource parameter works on every plan.

Security that acts on its own

Protections on by default, and a response centre for when you want your hand on the wheel.

Attack protection in every realm

Five kinds of attack are recognised by the shape of the traffic and answered with measures that expire on their own. Simulate a sensitivity over the last 7, 30 or 90 days before you switch.

Attack protection of one realm
  • Measure in forceCredential stuffingMeasure in force
  • WatchingPassword sprayingWatching
  • WatchingTargeted brute forceWatching
  • WatchingPush bombingWatching
  • WatchingRecovery abuseWatching

Quarantine one application, not the realm

Close a client for 5 minutes to 180 days, now or scheduled, let up to 50 people and 20 groups through while you investigate, or let its policy close it on its own during an attack.

checkout-web
In quarantine

Ends in 6 hours

3 people and 1 group allowed through

A stolen refresh token ends the session

Refresh tokens rotate on every use. One that comes back outside its 10-second reuse window ends the whole session, lands in the access log, fires a webhook and alerts the account owner.

What happens when a refresh token is replayed
  1. Refresh token rotatedRefresh token rotatedgrant_type=refresh_token
  2. The old token is presented againThe old token is presented again> 10 s
  3. The session and every token under it endThe session and every token under it endinvalid_grant
  4. Webhook sent and owner alertedWebhook sent and owner alertedRefreshTokenReuseDetected

See everything that happens, as it happens

Live sign-ins, alerts that open and close on their own and two audit trails you can export. Nothing to set up and nothing to install.

The live authentication stream

Every attempt as it happens, over Server-Sent Events: the method, the assurance level reached, the external provider and the reason for a refusal.

Authentication events as they arrive
  1. 14:02:41Password and authenticator appPassword and authenticator appamr pwd otpacr 2client web-app
  2. 14:02:38PasskeyPasskeyamr swk useracr 3
  3. 14:02:30Refresh token replayed — session endedRefresh token replayed — session endedclient mobile-app
  4. 14:02:17Federated sign-inFederated sign-inamr fedidp google
  5. 14:02:09New address waiting for approvalNew address waiting for approvalclient web-app
  6. 14:01:58Client credentialsClient credentialsclient billing-worker

Alerts that open and close on their own

21 kinds of alert, from a secret expiring in 7 days to a quota at 80%, in the portal, by e-mail and by webhook. A condition that clears closes itself.

Alerts of one account
  • A secret expires in 7 daysOpen
  • A plan quota is at 80%Open
  • Webhook endpoint disabled after 10 failures in a rowOpen
  • Signing keys rotatedClosed

When and where sign-ins happen

A 7 × 24 heatmap, comparison with the previous period and the failure reasons counted, for every realm and client.

Illustration with sample values.
  • Mon
    • Mon 00:00: 2
    • Mon 01:00: 6
    • Mon 02:00: 10
    • Mon 03:00: 5
    • Mon 04:00: 9
    • Mon 05:00: 4
    • Mon 06:00: 8
    • Mon 07:00: 3
    • Mon 08:00: 79
    • Mon 09:00: 74
    • Mon 10:00: 78
    • Mon 11:00: 82
    • Mon 12:00: 45
    • Mon 13:00: 49
    • Mon 14:00: 76
    • Mon 15:00: 80
    • Mon 16:00: 75
    • Mon 17:00: 79
    • Mon 18:00: 74
    • Mon 19:00: 30
    • Mon 20:00: 34
    • Mon 21:00: 29
    • Mon 22:00: 33
    • Mon 23:00: 4
  • Tue
    • Tue 00:00: 9
    • Tue 01:00: 4
    • Tue 02:00: 8
    • Tue 03:00: 3
    • Tue 04:00: 7
    • Tue 05:00: 2
    • Tue 06:00: 6
    • Tue 07:00: 10
    • Tue 08:00: 77
    • Tue 09:00: 81
    • Tue 10:00: 76
    • Tue 11:00: 80
    • Tue 12:00: 43
    • Tue 13:00: 47
    • Tue 14:00: 74
    • Tue 15:00: 78
    • Tue 16:00: 82
    • Tue 17:00: 77
    • Tue 18:00: 81
    • Tue 19:00: 28
    • Tue 20:00: 32
    • Tue 21:00: 27
    • Tue 22:00: 31
    • Tue 23:00: 2
  • Wed
    • Wed 00:00: 7
    • Wed 01:00: 2
    • Wed 02:00: 6
    • Wed 03:00: 10
    • Wed 04:00: 5
    • Wed 05:00: 9
    • Wed 06:00: 4
    • Wed 07:00: 8
    • Wed 08:00: 75
    • Wed 09:00: 79
    • Wed 10:00: 74
    • Wed 11:00: 78
    • Wed 12:00: 50
    • Wed 13:00: 45
    • Wed 14:00: 81
    • Wed 15:00: 76
    • Wed 16:00: 80
    • Wed 17:00: 75
    • Wed 18:00: 79
    • Wed 19:00: 26
    • Wed 20:00: 30
    • Wed 21:00: 34
    • Wed 22:00: 29
    • Wed 23:00: 9
  • Thu
    • Thu 00:00: 5
    • Thu 01:00: 9
    • Thu 02:00: 4
    • Thu 03:00: 8
    • Thu 04:00: 3
    • Thu 05:00: 7
    • Thu 06:00: 2
    • Thu 07:00: 6
    • Thu 08:00: 82
    • Thu 09:00: 77
    • Thu 10:00: 81
    • Thu 11:00: 76
    • Thu 12:00: 48
    • Thu 13:00: 43
    • Thu 14:00: 79
    • Thu 15:00: 74
    • Thu 16:00: 78
    • Thu 17:00: 82
    • Thu 18:00: 77
    • Thu 19:00: 33
    • Thu 20:00: 28
    • Thu 21:00: 32
    • Thu 22:00: 27
    • Thu 23:00: 7
  • Fri
    • Fri 00:00: 3
    • Fri 01:00: 7
    • Fri 02:00: 2
    • Fri 03:00: 6
    • Fri 04:00: 10
    • Fri 05:00: 5
    • Fri 06:00: 9
    • Fri 07:00: 4
    • Fri 08:00: 80
    • Fri 09:00: 75
    • Fri 10:00: 79
    • Fri 11:00: 74
    • Fri 12:00: 46
    • Fri 13:00: 50
    • Fri 14:00: 77
    • Fri 15:00: 81
    • Fri 16:00: 76
    • Fri 17:00: 80
    • Fri 18:00: 75
    • Fri 19:00: 31
    • Fri 20:00: 26
    • Fri 21:00: 30
    • Fri 22:00: 34
    • Fri 23:00: 5
  • Sat
    • Sat 00:00: 6
    • Sat 01:00: 1
    • Sat 02:00: 5
    • Sat 03:00: 0
    • Sat 04:00: 4
    • Sat 05:00: 0
    • Sat 06:00: 3
    • Sat 07:00: 0
    • Sat 08:00: 23
    • Sat 09:00: 27
    • Sat 10:00: 22
    • Sat 11:00: 26
    • Sat 12:00: 12
    • Sat 13:00: 16
    • Sat 14:00: 20
    • Sat 15:00: 24
    • Sat 16:00: 19
    • Sat 17:00: 23
    • Sat 18:00: 27
    • Sat 19:00: 8
    • Sat 20:00: 12
    • Sat 21:00: 7
    • Sat 22:00: 11
    • Sat 23:00: 0
  • Sun
    • Sun 00:00: 4
    • Sun 01:00: 0
    • Sun 02:00: 3
    • Sun 03:00: 0
    • Sun 04:00: 2
    • Sun 05:00: 6
    • Sun 06:00: 1
    • Sun 07:00: 5
    • Sun 08:00: 21
    • Sun 09:00: 25
    • Sun 10:00: 20
    • Sun 11:00: 24
    • Sun 12:00: 10
    • Sun 13:00: 14
    • Sun 14:00: 27
    • Sun 15:00: 22
    • Sun 16:00: 26
    • Sun 17:00: 21
    • Sun 18:00: 25
    • Sun 19:00: 6
    • Sun 20:00: 10
    • Sun 21:00: 5
    • Sun 22:00: 9
    • Sun 23:00: 6

The AI advisor proposes. You apply.

More than thirty capabilities that work on your real clients, trails and sign-in activity. It changes nothing you have not applied, and it is nowhere near the sign-in path.

A client review

A finding and its proposal, drawn the way the console draws them. The client and the numbers are illustrative; the shape of the answer is not.
  • 1High
  1. Access tokens outlive the session that issued them

    HighToken policy

    A token that stays valid for twelve hours cannot be withdrawn for twelve hours. Ending somebody’s session leaves every access token already issued to them working until it expires.

    Next step: Bring the access token lifetime down to 15 minutes and let the refresh token carry the session. This client already refreshes, so nobody has to sign in again.

  • Access token lifetime: 720 → 15 minutes

    One of 16 settings the advisor may propose. Undo restores only what it wrote.

  • Authio AI is a plan feature with a monthly run allowance, powered by Anthropic’s Claude.

    Ready to sell to companies

    Each of your business customers gets an organization inside a realm, with their domain, their single sign-on and their directory, and your team gets the controls an audit asks for.

    Organizations with a proven domain

    A DNS TXT record proves the domain, unique across the platform. People on it can join on their own once their e-mail is confirmed, and the organization travels in the token.

    acme
    An organization of one realm
    • acme.exampleVerified by DNS
    • SAML 2.0 sign-in required
    • SCIM provisioning connected
    org_id
    "org_7f3c"
    org_alias
    "acme"
    org_roles
    ["admin"]

    Separation of duties in your team

    Auditor reads everything, Developer configures without touching secrets, Admin handles credentials and people, and only the Owner handles billing. Require a second factor from admins or from everyone.

    What each console role can do
    RoleRead everythingConfigureSecrets and teamPlan and billing
    Auditor
    Developer
    Admin
    Owner

    From the console to your code in minutes

    Standard OAuth and OpenID Connect work with any library. The SDKs are there to shorten the path, not to tie you down.

    Real code, for the stack you use

    The same issuer, client and scopes your console shows, in the packages we publish.

    auth.tsTypeScript
    // AUTH_AUTHIO_ISSUER, AUTH_AUTHIO_ID and AUTH_AUTHIO_SECRET in .env.local
    import NextAuth from 'next-auth'
    import { createAuthio } from '@hyper.authio/provider-nextauth/v5'
    
    export const authio = createAuthio({
      checks: ['pkce', 'state', 'nonce'],
      authorization: { params: { scope: 'openid profile email roles offline_access' } },
      postLogoutRedirectUri: new URL('/', process.env.AUTH_URL).toString(),
    })
    
    export const { handlers, auth, signIn, signOut } = NextAuth({
      providers: [authio.provider],
      callbacks: authio.callbacks,
      events: authio.events,
    })

    Or let the terminal do it

    The client’s guide generates a one-time command. The CLI shows every file before writing it, never overwrites one, asks for the secret in a hidden prompt and waits for your first sign-in. Today for Next.js with Auth.js v5.

    Integrating from the terminalShell
    npx "@hyper.authio/cli@latest" init --ticket ait_…
    npx "@hyper.authio/cli" verify --wait

    Tools

    Your own Authio, on infrastructure of its own

    On the Dedicated plan, Authio provisions a complete environment for your account alone — its own API, console, database and cache — and your console becomes the place you watch and operate it.

    Dedicated environment

    Provisioning
    1. Create the project
    2. Create the database
    3. Create the cache
    4. Create the API
    5. Create the console
    6. Assign the addresses
    7. Configure the variables
    8. Deploy
    9. Wait until it answers
    10. Send the welcome e-mail

    What the plan means

    • Nothing sharedIts own API, console, PostgreSQL and Redis, in a project no other customer runs in.
    • Provisioned when you payPaying starts the assembly. Your console shows each step as it completes, and you get an e-mail when the environment is ready.
    • On your domainReach it at its own addresses from the start, and move it to a domain of yours with a couple of DNS records.
    • Watched and operated from your consoleCPU, memory, network and disk per service, usage and logs — and restart, redeploy or stop any service when you need to.
    • Updated when you chooseAn environment moves to a new version only when you press Update, and a stuck or failed one can be rebuilt from scratch.
    • Kept when a payment lapsesA lapsed subscription suspends the environment and keeps its data for 30 days, with a reminder a week before anything is deleted.

    Pricing that grows with you

    A monthly price per plan, with a free trial and no credit card. Where a plan bills by usage, its card shows the quota included and the price per unit past it, and going past it never blocks a sign-in.

    What counts, on plans billed by usage

    A plan billed by usage includes a monthly quota of active users and machine tokens. A monthly active user (MAU) is a distinct person who signs in at least once in the billing period, counted once however many times they sign in, sessions they open or tokens they refresh. A machine token is one token issued to a client through client credentials. Going past the quota never blocks a sign-in: each extra unit is billed at the plan’s overage price.
    One user, one billing period
    first sign-in
    counted once
    token refresh
    not counted
    signs in again
    another device
    period ends
    One machine client
    token issued
    counted
    token reused
    not counted
    token issued
    token issued
    period ends
    failed attemptfailed attempt
    never counted
    Past the quota, sign-in keeps working: each extra MAU or token is billed at the overage price.
    One user and one machine client over the same billing period.A plan billed by usage includes a monthly quota of active users and machine tokens. A monthly active user (MAU) is a distinct person who signs in at least once in the billing period, counted once however many times they sign in, sessions they open or tokens they refresh. A machine token is one token issued to a client through client credentials. Going past the quota never blocks a sign-in: each extra unit is billed at the plan’s overage price.
    1. first sign-in: counted once
    2. signs in again, another device, token refresh: not counted
    3. token issued: counted
    4. token reused: not counted
    5. failed attempt: never counted
    6. Past the quota, sign-in keeps working: each extra MAU or token is billed at the overage price.

    Loading pricing plans...

    Frequently asked questions

    What people ask before their first token.

    No. Every realm is a standard OAuth 2.0 and OpenID Connect provider with discovery, so any compliant library works. The packages for Next.js, Node.js, .NET and MCP servers only shorten the path.

    Authorization code with PKCE, client credentials, refresh token, device code (RFC 8628) and token exchange (RFC 8693), plus personal access tokens. The password grant exists for legacy integrations and goes through the same lockout, network and expired-password rules as the hosted sign-in.

    Register your MCP server as a resource server, allow the agent’s client and connect. Agents find Authio from your server’s 401 (RFC 9728), sign the person in with PKCE and get a token addressed to that server. Our packages for Node.js and ASP.NET Core handle the server side.

    Only what the platform assembles field by field: configuration and counts the database added up. Authio AI reads the account’s configuration when it answers; the people, sessions and activity of a realm only once you switch the advisor on for it. Secrets, passwords, private keys and tokens never enter the request.

    It is the console’s assistant: an access agent in the corner of every screen, or on the A key. It answers from the documentation and the screen guides, explains how to integrate with the steps and the code and takes you to the right screen, on every plan, with a number of questions a month set by the plan. With the AI advisor in your plan, it also reads your account live, from any screen, and proposes changes on a card you confirm; when it read only part of what you asked, it says so. It sees and does only what your permissions allow, and a secret an action generates appears only on the card, once.

    From Keycloak exports (PBKDF2 or Argon2id) and Auth0 exports that carry bcrypt hashes, yes: the hash is verified as it is and upgraded at the first sign-in. Cognito and Okta release no password hashes, so those users reset theirs. Every import runs a dry run before anything is written.

    Each plan has a monthly price, shown on its card. A plan billed by usage also includes a quota of monthly active users (each person who signs in during the period, counted once) and machine-to-machine tokens (each token issued through client_credentials), and past it every extra unit is billed at the plan’s price per unit. Exceeding a quota never blocks a sign-in, and failed attempts and token refreshes are never counted.

    Yes. Every account starts on a free trial with no credit card, and the plan cards show how many days each one includes. The Dedicated plan has no trial: the environment is created once the payment is confirmed.

    An environment of Authio for your account alone: its own API, console, PostgreSQL and Redis, provisioned automatically once you pay. Your console becomes the place you watch and operate it: metrics, logs, deployments and its domain.

    On the Dedicated plan, yes: point a domain of yours at the environment with the DNS records the console shows you. On the shared platform, sign-in runs on Authio’s domain, and the screens can carry your brand.

    English and Brazilian Portuguese, across the hosted sign-in, the e-mails, the console and the docs. The sign-in picks the language from ui_locales or the browser.

    Ready to issue your first token?

    Create an account, register a client and sign in. No credit card.