chore: some sso adjustments

This commit is contained in:
jialin
2025-08-15 10:26:24 +08:00
parent 7c32bf97ae
commit 0650c4bc26
4 changed files with 20 additions and 16 deletions
+9
View File
@@ -5,6 +5,11 @@ import qs from 'query-string';
export const AUTH_API = '/auth';
export const AUTH_CONFIG_API = '/auth-config';
export const AUTH_OIDC_LOGIN_API = '/auth/oidc/login';
export const AUTH_SAML_LOGIN_API = '/auth/saml/login';
export const login = async (
params: { username: string; password: string },
options?: any
@@ -38,3 +43,7 @@ export const updatePassword = async (params: any) => {
data: params
});
};
export const fetchAuthConfig = async () => {
return request(AUTH_CONFIG_API);
};