Skip to content

Move Wayfinder Enterprise to the Default organization unit - #30

Merged
AnuradhaSK merged 1 commit into
thunder-id:mainfrom
AnuradhaSK:wayfinder-default-ou
Nov 15, 2026
Merged

AnuradhaSK merged 1 commit into
thunder-id:mainfrom
AnuradhaSK:wayfinder-default-ou

Conversation

@AnuradhaSK

@AnuradhaSK AnuradhaSK commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Moves the Wayfinder Enterprise sample (b2b/wayfinder-enterprise) to the Default organization unit, in line with the B2B quickstarts, and updates the Next.js SDK so sign-out also ends the ThunderID session.

Approach

  • Default organization unit instead of a root one.
    • thunderid-config/organization-unit.yaml is removed.
    • Every resource in thunderid-config.yaml now uses ouHandle: default.
    • The sign-up and sign-in flows point parentOuId at the Default organization unit, so each company that signs up becomes its child.
    • The sample now imports in one step. With no organization unit to create, the import no longer has to be split in two.
  • @thunderid/nextjs 1.18.1 → 1.20.0. Sign-out now goes through ThunderID's /oauth2/logout, so the next sign-in asks for the password. The sample needs no sign-out workaround.
  • README. The organization tree, the single import step and the resource table now describe the Default organization unit.

The admin pages still reach the ThunderID management API through the app's backend client.

Follow UP: Update the Thudner documentation

Related Issues

  • N/A

Related PRs

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
    • On a fresh ThunderID 2.0.0-m1 (local build from main), following the README: the import created all 12 resources in the Default organization unit in one step.
    • Registered Northstar Labs, set the travel policy, created a user, assigned it Wayfinder Member, and created a group.
    • Added an OpenID Connect identity provider and saved it as the company's enterprise SSO connection. A first-time employee signed in with enterprise SSO and landed on the booking page as a member.
    • Signed out: the app called /oauth2/logout, and the next sign-in asked for the password.
  • Documentation provided. (Add links if there are any)
    • b2b/wayfinder-enterprise/README.md
  • Tests provided. (Add links if there are any)
    • Unit Tests
    • Integration Tests
  • Breaking changes. (Fill if applicable)
    • Breaking changes section filled.
    • breaking change label added.

Security checks

  • Followed secure coding standards.
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

🤖 Generated with Claude Code

The import no longer creates a root organization unit. Every resource
goes into the Default organization unit, and each company that signs up
becomes its child, so the sample imports in one step. The Next.js SDK
moves to 1.20.0, whose sign-out also ends the ThunderID session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: AnuradhaSK <anuradha199528@gmail.com>
@AnuradhaSK
AnuradhaSK merged commit a200915 into thunder-id:main Nov 15, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants