* feat: oidc * feat: oidc remove comments * feat: oidc add shared type * feat: oidc add id_token sign alg * feat: oidc i18n & batch delete * feat: oidc i18n * feat: oidc import fix * feat: oidc saml list fix * feat: oidc i18n move to plugin * feat: oidc cr fix * feat: oidc cr fix * feat: oidc cr fix * feat: oidc fix nonce value * feat: oidc page extension fix * feat: oidc remove canceltoken Co-authored-by: chenos <chenlinxh@gmail.com>
24 lines
611 B
TypeScript
24 lines
611 B
TypeScript
import React from 'react';
|
|
import { uid } from '@formily/shared';
|
|
import { SchemaComponent, useRecord } from '@nocobase/client';
|
|
import { Card } from 'antd';
|
|
import { oidcSchema } from './schemas/oidc';
|
|
import { RedirectURLInput } from './RedirectURLInput';
|
|
import { useOidcTranslation } from './locale';
|
|
|
|
const schema = {
|
|
type: 'object',
|
|
properties: {
|
|
[uid()]: oidcSchema,
|
|
},
|
|
};
|
|
|
|
export const OIDCPanel = () => {
|
|
const { t } = useOidcTranslation();
|
|
return (
|
|
<Card bordered={false}>
|
|
<SchemaComponent components={{ RedirectURLInput }} schema={schema} scope={{ t }} />
|
|
</Card>
|
|
);
|
|
};
|