tachybase_todo/packages/plugins/@nocobase/plugin-cas/src/client/index.tsx
sealday 3e58c54aa8 feat: 仓库二期 (#719)
Co-authored-by: hello@lv <2256334253@qq.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#719
2024-05-08 16:20:31 +08:00

20 lines
500 B
TypeScript

import { Plugin } from '@tachybase/client';
import { SigninPage } from './SigninPage';
import { Options } from './Options';
import { authType } from '../constants';
import AuthPlugin from '@nocobase/plugin-auth/client';
export class SamlPlugin extends Plugin {
async load() {
const auth = this.app.pm.get(AuthPlugin);
auth.registerType(authType, {
components: {
SignInButton: SigninPage,
AdminSettingsForm: Options,
},
});
}
}
export default SamlPlugin;