feat(sso): introduce authentication with SAML

This commit is contained in:
Ali BARIN
2023-07-06 11:05:28 +00:00
parent 5176b8c322
commit a7104c41a2
28 changed files with 720 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
import { useQuery } from '@apollo/client';
import { TSamlAuthProvider } from '@automatisch/types';
import { GET_SAML_AUTH_PROVIDERS } from 'graphql/queries/get-saml-auth-providers.ee';
type UseSamlAuthProvidersReturn = {
providers: TSamlAuthProvider[];
loading: boolean;
};
export default function useSamlAuthProviders(): UseSamlAuthProvidersReturn {
const { data, loading } = useQuery(GET_SAML_AUTH_PROVIDERS);
return {
providers: data?.getSamlAuthProviders || [],
loading
};
}