feat(auth-domain): add idp initiated url in auth domain (#9721)

This commit is contained in:
Vikrant Gupta
2025-11-30 16:30:13 +05:30
committed by GitHub
parent 5d9dc17645
commit 8d61ee338b
2 changed files with 23 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import { ColumnsType } from 'antd/lib/table';
import deleteDomain from 'api/v1/domains/id/delete';
import listAllDomain from 'api/v1/domains/list';
import ErrorContent from 'components/ErrorModal/components/ErrorContent';
import CopyToClipboard from 'periscope/components/CopyToClipboard';
import { useErrorModal } from 'providers/ErrorModalProvider';
import { useState } from 'react';
import { useQuery } from 'react-query';
@@ -32,6 +33,23 @@ const columns: ColumnsType<GettableAuthDomain> = [
<Toggle isDefaultChecked={value} record={record} />
),
},
{
title: 'IDP Initiated SSO URL',
dataIndex: 'relayState',
key: 'relayState',
width: 80,
render: (_, record: GettableAuthDomain): JSX.Element => {
const relayPath = record.authNProviderInfo.relayStatePath;
if (!relayPath) {
return (
<Typography.Text style={{ paddingLeft: '6px' }}>N/A</Typography.Text>
);
}
const href = `${window.location.origin}/${relayPath}`;
return <CopyToClipboard textToCopy={href} />;
},
},
{
title: 'Action',
dataIndex: 'action',

View File

@@ -11,6 +11,7 @@ export interface GettableAuthDomain {
orgId: string;
ssoEnabled: boolean;
ssoType: string;
authNProviderInfo: AuthNProviderInfo;
samlConfig?: SAMLConfig;
googleAuthConfig?: GoogleAuthConfig;
oidcConfig?: OIDCConfig;
@@ -42,3 +43,7 @@ export interface OIDCConfig {
export interface ClaimMapping {
email: string;
}
export interface AuthNProviderInfo {
relayStatePath: string;
}