File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
web/src/pages/openidCallback/components Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ export const OpenIDCallbackCard = () => {
9393 return undefined ;
9494 } , [ data ] ) ;
9595
96+ const deepLink = useMemo ( ( ) => {
97+ if ( data ) {
98+ return `defguard://addinstance?token=${ data . token } &url=${ data . url } ` ;
99+ }
100+ return null ;
101+ } , [ data ] ) ;
102+
96103 if ( isLoading ) {
97104 return (
98105 < div className = "loader-container" >
@@ -125,14 +132,26 @@ export const OpenIDCallbackCard = () => {
125132 < BigInfoBox message = { LL . pages . oidcLogin . card . infoBox ( ) } />
126133 < h3 >
127134 Please enter the provided Instance URL and Token into your Defguard Client. You
128- can scan the QR code or copy and paste the token manually.
135+ can scan the QR code, click the button below or copy and paste the token manually.
129136 </ h3 >
130137 { isPresent ( data ) && (
131138 < >
132139 < CopyField label = "Url" value = { data . url } onCopy = { writeToClipboard } />
133140 < CopyField label = "Token" value = { data . token } onCopy = { writeToClipboard } />
134141 </ >
135142 ) }
143+
144+ { isPresent ( deepLink ) && (
145+ < div className = "row" >
146+ < a href = { deepLink } target = "_blank" rel = "noopener noreferrer" >
147+ < Button
148+ text = "Configure your desktop client"
149+ size = { ButtonSize . LARGE }
150+ styleVariant = { ButtonStyleVariant . PRIMARY }
151+ />
152+ </ a >
153+ </ div >
154+ ) }
136155 { isPresent ( qrData ) && (
137156 < div className = "row" >
138157 < div className = "qr" >
You can’t perform that action at this time.
0 commit comments