Repository navigation
Add ThunderID Manage B2B sample with agent onboarding - #6
Merged
brionmario merged 1 commit intoOct 21, 2026
Merged
Conversation
Dilusha-Madushan
force-pushed
the
feature/b2b-manage-sample-agent
branch
3 times, most recently
from
October 16, 2026 07:39
1695532 to
0d726c4
Compare
Signed-off-by: Dilusha-Madushan <dilushamadushan9912@gmail.com>
Dilusha-Madushan
force-pushed
the
feature/b2b-manage-sample-agent
branch
from
October 16, 2026 10:10
0d726c4 to
2101bd0
Compare
Contributor
Author
Screen.Recording.2026-10-16.at.15.41.03.mov |
brionmario
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR adds ThunderID Manage at
b2b/manage, a React sample that shows how to build an admin app with the ThunderID SDK. The first version lets administrators list, create, and delete agents.The main example is agent creation. The app starts the server's onboarding flow, and the SDK renders the steps returned by the server: choosing an owner, entering agent details, and viewing the generated credentials. The owner picker loads the first 30 users when it renders and lists a Load more option for the rest. The client secret starts hidden in a read-only password field, with an eye button to reveal it and a Copy icon inside the field that copies the original value.
Approach
The server defines the onboarding steps, and the SDK handles their rendering and state. The sample provides the surrounding pages, authenticated requests, and two custom flow renderers.
BaseInviteUser. The app supplies callbacks that execute the flow and SDK hooks that load users, authentication flows, and user types. The current onboarding example uses the user picker; it does not demonstrateAuthFlowSelectorUserTypeSelect. After completion, the administrator can return to the list or start another agent.OU_SELECT) and position the step's action button on the right. The SDK renders the remaining supported components.default-agent-onboarding-flowas the default. The app searches the administration flows for that handle and passes the matching ID to/flow/execute. A missing flow produces a message explaining which setting to change.openid profile systemscopes and the configured management resource, then uses the SDK's authenticated HTTP client for API calls. The server checks management permissions, and the page displays an error if a request fails..env.exampledocuments the server URL, client ID, onboarding flow handle, and management resource. The flow handle and resource have defaults. A notice appears when the server URL or client ID is missing, and.envis ignored by Git.Related Issues
Related PRs
Checklist
breaking changelabel added.Security checks