feat: entitlement check#3969
Open
grutt wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an organization-level entitlement gate to the SSO configuration UI so that SSO setup is only available when the control-plane indicates the org is entitled to use SSO.
Changes:
- Introduces a new
organizationEntitlementsGetcontrol-plane endpoint client + TypeScript contract (OrganizationEntitlements). - Adds a new React Query call in the organization settings SSO tab to fetch entitlements and conditionally enable SSO queries/UI.
- Updates the SSO tab UI to show a “contact us” message when the org is not entitled.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/app/src/pages/main/v1/tenant-settings/organization/index.tsx | Fetches org entitlements and gates SSO queries + renders either SSO config or an access message. |
| frontend/app/src/lib/api/organization-wrapper.ts | Adds a React Query helper for fetching org entitlements via the control-plane API client. |
| frontend/app/src/lib/api/generated/control-plane/data-contracts.ts | Adds the OrganizationEntitlements response type (canSSO). |
| frontend/app/src/lib/api/generated/control-plane/Api.ts | Adds organizationEntitlementsGet API method to the generated control-plane client. |
| {organizationEntitlementsQuery.isLoading ? ( | ||
| <div className="flex items-center justify-center py-8"> | ||
| <Loading /> | ||
| </div> |
|
📝 Documentation Update I've updated the Enterprise SSO documentation to reflect this entitlement check. Change: Added a note clarifying that Enterprise SSO is available on certain Hatchet Cloud plans, with a link for users to contact support to upgrade. |
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.
Description
Adds an entitlement check to configure SSO
Type of change