mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
read `ssoSubIds` in state.php from `api.json` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new query to check if Single Sign-On (SSO) is enabled. * Updated UI components to dynamically reflect SSO availability via live data. * **Refactor** * Streamlined internal handling of SSO status detection for improved reliability and maintainability. * **Tests** * Enhanced tests for SSO button behavior with mocked live data and added edge case coverage for SSO callback handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
20 lines
404 B
TypeScript
20 lines
404 B
TypeScript
import { graphql } from '~/composables/gql/gql';
|
|
|
|
export const CONNECT_SIGN_IN = graphql(/* GraphQL */`
|
|
mutation ConnectSignIn($input: ConnectSignInInput!) {
|
|
connectSignIn(input: $input)
|
|
}
|
|
`);
|
|
|
|
export const CONNECT_SIGN_OUT = graphql(/* GraphQL */`
|
|
mutation SignOut {
|
|
connectSignOut
|
|
}
|
|
`);
|
|
|
|
export const SSO_ENABLED = graphql(/* GraphQL */`
|
|
query IsSSOEnabled {
|
|
isSSOEnabled
|
|
}
|
|
`);
|