fix(auth): handle saml logout and xml encryption padding

This commit is contained in:
mac
2026-07-17 09:42:12 +08:00
parent 157f0c65cb
commit b151356045
7 changed files with 112 additions and 12 deletions
+4 -2
View File
@@ -13,11 +13,13 @@ export function useAuth() {
}
const logout = async () => {
let logoutUrl = ''
try {
await authApi.logout()
const response = await authApi.logout()
logoutUrl = response.data.logout_url || ''
} finally {
authStore.clearAuth()
window.location.assign('/login?logged_out=1')
window.location.assign(logoutUrl || '/login?logged_out=1')
}
}