diff --git a/web/src/pages/openidCallback/components/OpenIDCallbackCard.tsx b/web/src/pages/openidCallback/components/OpenIDCallbackCard.tsx index 29a67844..7af39d82 100644 --- a/web/src/pages/openidCallback/components/OpenIDCallbackCard.tsx +++ b/web/src/pages/openidCallback/components/OpenIDCallbackCard.tsx @@ -93,6 +93,13 @@ export const OpenIDCallbackCard = () => { return undefined; }, [data]); + const deepLink = useMemo(() => { + if (data) { + return `defguard://addinstance?token=${data.token}&url=${data.url}`; + } + return null; + }, [data]); + if (isLoading) { return (
@@ -125,7 +132,7 @@ export const OpenIDCallbackCard = () => {

Please enter the provided Instance URL and Token into your Defguard Client. You - can scan the QR code or copy and paste the token manually. + can scan the QR code, click the button below or copy and paste the token manually.

{isPresent(data) && ( <> @@ -133,6 +140,18 @@ export const OpenIDCallbackCard = () => { )} + + {isPresent(deepLink) && ( +
+ +
+ )} {isPresent(qrData) && (