[#4177] added graceful OAuth2 redirect error handling

This commit is contained in:
Gani Georgiev
2024-01-19 19:14:52 +02:00
parent fc18e69183
commit b2b792b763
38 changed files with 293 additions and 161 deletions
@@ -0,0 +1,12 @@
<script>
import { onMount } from "svelte";
onMount(() => {
window.close();
});
</script>
<div class="content txt-hint txt-center p-base">
<h3 class="m-b-sm">Auth failed.</h3>
<h5>You can close this window and go back to the app to try again.</h5>
</div>
+8 -2
View File
@@ -152,8 +152,14 @@ const routes = {
userData: { showAppSidebar: false },
}),
"/auth/oauth2-redirect": wrap({
asyncComponent: () => import("@/components/records/PageOAuth2Redirect.svelte"),
"/auth/oauth2-redirect-success": wrap({
asyncComponent: () => import("@/components/records/PageOAuth2RedirectSuccess.svelte"),
conditions: baseConditions,
userData: { showAppSidebar: false },
}),
"/auth/oauth2-redirect-failure": wrap({
asyncComponent: () => import("@/components/records/PageOAuth2RedirectFailure.svelte"),
conditions: baseConditions,
userData: { showAppSidebar: false },
}),