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
20 lines
500 B
TypeScript
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;
|