Registration
Use registration when a user should create a new organization without receiving an invite first. Users who are joining an existing organization should use an invitation flow instead.
- The user opens
https://your-authproxy/register. - AuthProxy stores a short-lived HTTP-only registration cookie.
- AuthProxy starts authentication.
- With one configured identity provider, AuthProxy challenges that provider directly.
- With multiple providers, AuthProxy redirects to the standard login page so the user can choose
a provider, preserving
/registeras the return destination.
- After a successful login, authentication returns to
/register, where AuthProxy deletes the registration cookie. - AuthProxy redirects the user to
Invite.Lobby.Registration.BaseUrl.
The /register path is only active when Invite.Lobby.Registration.BaseUrl is configured.
Registration returns to this proxy-owned path before tenant membership is required, so a new user can complete
registration with Host addressing and Selection configured. A local /register return path continues the flow.
Another local destination, including / or no return URL, abandons the flow: AuthProxy deletes the pending cookies
and continues ordinary sign-in. Off-site URLs remain rejected. Like pending invitations, registration keeps
the handshake on its starting host while its host-only flow cookie is pending.
Configuration
Section titled “Configuration”{ "Cratis": { "AuthProxy": { "Invite": { "Lobby": { "Registration": { "BaseUrl": "https://lobby.example.com/register" } } } } }}| Property | Type | Description |
|---|---|---|
Lobby.Registration.BaseUrl |
string |
Absolute URL for the lobby registration experience that creates the organization after AuthProxy sign-in. |
Aspire
Section titled “Aspire”When you configure AuthProxy through Aspire, set the registration destination with
WithLobbyRegistration(...):
authproxy.WithLobbyRegistration(lobbyResource, "/register");
// or use a raw URLauthproxy.WithLobbyRegistration("https://lobby.example.com/register");This sets Cratis:AuthProxy:Invite:Lobby:Registration:BaseUrl.