Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Partners and guests from other organizations

A partner's people can sign in with their own organization's accounts, but what they may do stays the host's decision. This lesson follows Talia Sato, a Northwind designer whom Cedar Inc. invites to view one album for its spring launch: the sponsor and purpose behind a guest, the three separate decisions that let her in, what changes when either organization acts, and who keeps answering for the relationship.

An external person with a local reason to enter

Cedar Inc. is preparing its spring product launch. The photographs for it sit in album 91, "Spring launch", in the media library where Cedar's marketing team keeps its campaign images. Cedar has hired Northwind, a partner organization, to design the launch materials, and Northwind's designer, Talia Sato, needs to see those photographs for the next few weeks.

Talia already has an account. Northwind runs its own sign-in at login.northwind.example, and that is where Talia signs in every morning. Cedar does not want Talia to keep a second password, and it does not need to: it can accept Northwind's word about who is signing in. What Northwind cannot tell Cedar is which of Cedar's albums Talia should see. That is Cedar's decision, and Cedar remains responsible for it whoever authenticates Talia.

A person who comes from another organization to work on something local is often called a guest, and the account Cedar keeps for them is a guest account. Being a guest is not an exception to ordinary authorization. Talia's relationship with Cedar has the same parts as anyone else's, made explicit because nothing in Cedar's HR system describes it: a local sponsor who answers for it, a purpose, the resources it covers, and the point at which it ends. Contractors, rehires, and leave showed the same sponsor and end date governing people who work at Harbor Clinic without being employees.

An email address does none of that work. An address ending in northwind.example shows that Northwind issued it, not that Cedar invited its holder or gave them anything.

Keep the agreement and local grant separate

Three separate decisions let Talia in, and each is made by someone different.

The first is the federation agreement. Cedar's identity team configures its sign-in service to accept sign-ins from Northwind's provider, identified by its issuer, https://login.northwind.example. They make one more choice: a Northwind sign-in may only connect to a Cedar account that already exists, after the person proves control of that account in the same session. It never creates an account by itself.

The second is the invitation. Cedar's campaign lead, a member of the marketing staff, decides that Talia's work needs Cedar access and becomes her sponsor. Cedar creates the guest account guest-4471 and emails Talia a one-time invitation, which lets her set a temporary password for it. On her first visit, Talia chooses Northwind on Cedar's sign-in page and signs in there as she does every morning. Cedar validates the ID token and finds that Northwind's subject for Talia is not connected to any Cedar account yet, so it asks her to sign in to guest-4471 with the temporary password from the invitation. With both sides proven in one session, Cedar records the link, the same safe flow as in Linking accounts, and retires the temporary password. From then on, a Northwind sign-in opens guest-4471 directly, and Talia has no Cedar password to remember or lose.

The third is the grant. The sponsor gives guest-4471 the viewer relationship on album 91, and nothing else. This is the only decision that gives Talia access to anything. The guest account record shows all three side by side:

Account          guest-4471   (guest)
Person           Talia Sato, designer at Northwind
Linked sign-in   issuer   https://login.northwind.example
                 subject  nw-5e81a2c9
                 linked   2026-10-05, after a sign-in to guest-4471
Sponsor          Cedar's campaign lead
Purpose          Northwind designer: view one album until the project ends
Grant            viewer on album 91, "Spring launch"
Ends             when the project ends, and no later than 2026-12-31

All people, organizations, and identifiers in these examples are fictional.

This grant is much narrower than access to Cedar as a whole, and nothing on Northwind's side can widen it. Suppose a Northwind administrator renames Talia's account "Cedar Admin" and gives it an address on a look-alike domain such as cedar-inc.example. The next ID token carries the new name and address, and Cedar gains nothing from them. It recognizes the account by the issuer and subject pair it linked after local proof, not by a name or an address, and Talia's access still comes from the one relationship Cedar granted. Nor can a colleague of Talia's at Northwind claim guest-4471 by presenting Talia's email address, or a subject value copied from some other provider. Only Northwind's issuer with Talia's subject reaches that account.

Federation agreement

Decided by
Cedar's identity team
Recorded as
Issuer login.northwind.example
Gives
Evidence Cedar accepts
Rename at Northwind
Changes nothing

Never creates an account

Invitation and link

Decided by
The sponsor
Recorded as
nw-5e81a2c9 to guest-4471
Gives
A local account
Rename at Northwind
Changes nothing

Linked after local proof

Grant

Decided by
The sponsor
Recorded as
Viewer on album 91
Gives
Access to one album
Rename at Northwind
Changes nothing

The only access Talia has

It recognizes the account by the issuer and subject pair it linked after local proof, not by a name or an address.

The three decisions that let Talia in, each made by someone different. Only the grant opens anything, and nothing Northwind changes reaches any of them.

Keeping the three decisions apart is what makes each of them reviewable. The federation agreement decides which provider's evidence Cedar accepts. The invitation and sponsorship decide whether to create or link a local account. The grant decides what that account may do. Each is authorized by someone entitled to make it and recorded on its own, instead of all three collapsing into the idea that a partner is trusted.

Changes happen on both sides

Either organization can change the relationship. Northwind may disable Talia's account or change her job title. Cedar may pause or end the project, remove a grant, or replace the sponsor. Here is what Cedar's side looks like in November:

Illustrative: the project pauses, resumes and ends
DateWhat happensWhat it means
3 November, 09:00The project is paused. The sponsor removes the guest's viewer relationship on album 91.Cedar's own decision about one album has changed. Northwind still authenticates Talia, and the link to guest-4471 is untouched.
3 November, 10:15Talia signs in through Northwind and Cedar issues a new access token for the media library.The sign-in, the provider and the token are all valid. The media library refuses album 91 because the grant is gone.
4 NovemberThe project resumes for a day. The sponsor adds the viewer relationship again.Only the grant is restored. The link and Northwind's account were never part of the change.
5 NovemberThe project ends. The sponsor removes the relationship for good.The guest account stays linked, but it can open nothing at Cedar.

The token Talia received at 10:15 on 3 November is perfectly good. Decoded, its payload names her guest account, the media library as its audience, and a scope that allows reading albums:

{
  "iss": "https://login.cedar.example",
  "sub": "guest-4471",
  "aud": "https://media.cedar.example",
  "scope": "albums.read",
  "iat": 1793700900,
  "exp": 1793701500
}

The scope says what kind of request the token may be used for. Which albums the guest may read is a separate question, and the media library answers it on every request by looking up the current relationships:

GET /albums/91 HTTP/1.1
Host: media.cedar.example
Authorization: Bearer eyJhbGciOiJSUzI1NiIs...

HTTP/1.1 404 Not Found
Content-Type: application/json

{"error": "not_found"}

The library answers exactly as it would for an album that does not exist, so a refused request never confirms what Cedar holds. Its own audit record keeps the real reason, no_grant: no current relationship gives the guest that album.

Changes from Northwind's side arrive differently. If Northwind disables Talia's account, Talia can no longer start a sign-in there, so she can no longer reach Cedar through Northwind. That is all it does at Cedar. A Cedar session she already had stays open until it expires, a token Cedar already issued works until it expires, and the viewer relationship on album 91 remains until Cedar removes it. Cedar decides in advance how long that kind of external evidence can stay stale: its guest sessions last at most eight hours, after which Talia has to sign in through Northwind again. And the sponsor still reviews the grant, because Northwind disabling an account does not end Cedar's decision about it.

When Cedar ends access itself, the change has to reach every place the access lives: the guest account's grants, its open sessions, and any account a downstream application created for it. A successful update in Cedar's directory does not prove that every application has closed its sessions. If an application has not confirmed the change, Cedar keeps that outcome recorded as unresolved and follows it up, and afterwards it sends the old request for album 91 again to check that it really is refused.

Review and recovery need owners

Every guest relationship needs a local person who keeps answering for it once the project is under way. Had the launch work run on, Talia's sponsor would have received a reminder two weeks before 31 December. If the work continues, the sponsor renews the grant as a deliberate decision with a new end date, in the same way as the time-limited access in Temporary, privileged, and emergency access. If nobody decides, the grant ends rather than quietly becoming permanent. When the sponsor leaves Cedar or changes jobs, Talia's relationship needs a new sponsor, just as Harbor's contractors do.

A guest should also never become the only person who can run something of Cedar's. Suppose Talia were given administration of the media library to help with the launch, and Cedar's own library administrators later left. Cedar would then depend on a Northwind account to manage its own photographs, and if Northwind disabled that account, nobody at Cedar could administer the library or recover its accounts. Administration and recovery stay with Cedar's own staff, whatever guests are added.

Recovery on Northwind's side needs the same care. Had Northwind moved to a new directory in the middle of the project, Talia's next sign-in would have arrived with a new subject, say nw-90d3f1b7, that matches no link at Cedar. Cedar would treat it as a first visit and open nothing. Her temporary password is long retired, so the sponsor would send a fresh invitation, and proving control of guest-4471 through it would link the new subject and retire the old one. The grant on album 91 would be exactly what it was before. The new subject never inherits the account because the name and email address still say Talia Sato.

Check your understanding

Try these questions before moving on. If an answer isn't right, use the feedback and try again.

The sponsor has removed the guest's viewer relationship on album 91. Talia then signs in through Northwind, and Cedar issues a fresh, valid token with the albums.read scope. What happens when she requests album 91? 1 of 3

Choose one answer.

A Northwind administrator renames Talia's account "Cedar Admin" and gives it an address on a Cedar-looking domain. What does Talia gain at Cedar? 2 of 3

Choose one answer.

Northwind moves to a new directory mid-project, and Talia's next sign-in arrives with a new subject, nw-90d3f1b7, though her name and email are unchanged. What should Cedar do? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity