Identity providers
An identity provider is a login EdgeKit trusts to say who a user is. EdgeKit works with two:
- Your own login, which EdgeKit reads at sites whose id mode is
external_onlyordual. What EdgeKit then verifies and how a credential becomes a user is in Connect your existing login; the modes are in Choose who signs users in. - Google, as a sign-in method of EdgeKit ID, through your organization’s own Google client. See Sign users in.
This page lists what you set up on your side and what you hand to EdgeKit. EdgeKit sets up the connection for your organization. There is no console screen for either.
Supported identity providers
Section titled “Supported identity providers”EdgeKit turns on each provider below for your organization when you ask.
| Identity provider | Connects as |
|---|---|
| Your own login, through a signed token or a session endpoint | Your own login |
| Arc XP Identity | Your own login |
| EdgeKit ID sign-in |
Your own login
Section titled “Your own login”Your organization has one identity provider. Your login proves who a user is one of three ways, and each needs different things from you.
A token your login signs
Section titled “A token your login signs”Your login issues a signed token, and EdgeKit verifies it with your key without calling your login.
You give EdgeKit:
| What | Notes |
|---|---|
| Your issuer | The iss your tokens carry, exactly |
| The algorithm | One of RS256, ES256 or HS256 |
| Your key | For RS256 and ES256, your key set URL. For HS256, a shared secret of at least 32 bytes |
| The cookie names | The cookies your login sets the token in, in the order EdgeKit should read them |
| Your claims | Which claims hold the person’s id, email and email verified, if not sub, email and email_verified; and any claim to read as a trait or an external.* fact |
| The age limit | Optional. 1 hour unless you ask for another, at most 24 hours |
| The clock tolerance | Optional. 60 seconds unless you ask for another, at most 5 minutes |
| Your sign-out page | Required for a dual site |
| Your login page | Optional. Where a site’s MCP server sends a user who is not logged in; see Sign-in through your own login |
EdgeKit gives you back:
- One
audvalue per site inexternal_onlyordual. Each site’s tokens must carry its own. - The
typyour tokens must carry:edgekit-id+jwt.
Then have your login issue tokens in that profile. The header, the claims and an example are in A token your login signs.
The session token you already issue
Section titled “The session token you already issue”If your site already sets a signed session token and you cannot change what it carries, EdgeKit can read it as it
is. It verifies the signature, the algorithm, exp and the token’s age. It does not check typ, iss or aud,
so every token signed with that key is accepted as a user on every site of your organization. Use the profile
above when you can issue a token for EdgeKit alone.
You give EdgeKit the algorithm, your key, the cookie names and your claims, as above. The claim that holds the person’s id is required. Two things differ:
- No
audvalue and notyp. EdgeKit gives you neither. - The clock tolerance is also a grace period. A token is accepted for that long after its
exp, at most 30 minutes, for a site whose pages refresh the token only when they next load.
A token with no email_verified claim never takes over a user that already holds its email. Its verified claims
still decide, as external.* facts. What EdgeKit holds for that user, their grants and traits, reads as anonymous
until you send the user through the users sync.
A session endpoint EdgeKit asks
Section titled “A session endpoint EdgeKit asks”If your login’s cookie is opaque, EdgeKit asks your login who is signed in instead.
You give EdgeKit:
- Your session endpoint’s URL. EdgeKit sends it a
GETwith the request’s wholeCookieheader, or a native app’s token inx-session-token. It must answer within 3 seconds:200with JSON for a signed-in user,401or403for nobody. - Where the answer holds the person’s id, their email and whether it is verified.
- Your sign-out page, for a
dualsite. - Optional: your login page and your login’s cookie names, for a site’s MCP server. Its sign-in page checks your login only when the browser sends one of those cookies, and sends your endpoint those cookies alone. See Sign-in through your own login.
Your site needs no cookie names, because EdgeKit forwards the whole Cookie header, and your endpoint checks no
aud value. EdgeKit caches nothing, so every request that needs the user is one
call to your endpoint. Size it for that load.
On your domain
Section titled “On your domain”A browser credential reaches EdgeKit only in a cookie sent to the /edgekit/ mount, so your login must set it on
the domain your pages are served from. See First-party mount and site proxy.
A deploy is refused while a site in external_only or dual has no identity provider to read.
Sign-in providers
Section titled “Sign-in providers”Google is the only sign-in provider.
- Create an OAuth client in Google Cloud, under your own consent screen. Users see your consent screen, never EdgeKit’s. Register your sites’ origins as its JavaScript origins.
- Give EdgeKit the client id and the client secret. Google sign-in is offered only while EdgeKit holds both.
GET /v1/id/config then lists google with its client id, and your page signs users in with it. See
Sign users in.