mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
feat(auth-domain): add idp initiated url in auth domain (#9721)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user