@@ -3,6 +3,7 @@ import './style.scss';
33import { useQuery } from '@tanstack/react-query' ;
44import type { AxiosError } from 'axios' ;
55import { useMemo , useState } from 'react' ;
6+ import Markdown from 'react-markdown' ;
67import QRCode from 'react-qr-code' ;
78import { useBreakpoint } from 'use-breakpoint' ;
89import { useI18nContext } from '../../../i18n/i18n-react' ;
@@ -130,17 +131,7 @@ export const OpenIDCallbackCard = () => {
130131 < Card shaded = { breakpoint !== 'mobile' } className = "openidcallback-card" >
131132 < h2 > { LL . pages . oidcLogin . card . title ( ) } </ h2 >
132133 < BigInfoBox message = { LL . pages . oidcLogin . card . infoBox ( ) } />
133- < h3 >
134- Please enter the provided Instance URL and Token into your Defguard Client. You
135- can scan the QR code, click the button below or copy and paste the token manually.
136- </ h3 >
137- { isPresent ( data ) && (
138- < >
139- < CopyField label = "Url" value = { data . url } onCopy = { writeToClipboard } />
140- < CopyField label = "Token" value = { data . token } onCopy = { writeToClipboard } />
141- </ >
142- ) }
143-
134+ < MessageBox message = "If you want to configure your Defguard desktop client, please install the client (links below), open it and just press the One-Click Desktop Configuration button" />
144135 { isPresent ( deepLink ) && (
145136 < div className = "row" >
146137 < a href = { deepLink } target = "_blank" rel = "noopener noreferrer" >
@@ -152,19 +143,27 @@ export const OpenIDCallbackCard = () => {
152143 </ a >
153144 </ div >
154145 ) }
146+ < MessageBox >
147+ < Markdown >
148+ {
149+ 'If you are having trouble with the One-Click configuration you can do it manually by clicking *Add Instance* in the desktop client, and entering the following URL and Token:'
150+ }
151+ </ Markdown >
152+ </ MessageBox >
153+ { isPresent ( data ) && (
154+ < >
155+ < CopyField label = "Url" value = { data . url } onCopy = { writeToClipboard } />
156+ < CopyField label = "Token" value = { data . token } onCopy = { writeToClipboard } />
157+ </ >
158+ ) }
159+ < MessageBox message = "If you want to configure your Mobile Defguard Client, please just scan this QR code in the app:" />
155160 { isPresent ( qrData ) && (
156161 < div className = "row" >
157162 < div className = "qr" >
158163 < QRCode value = { qrData } />
159164 </ div >
160165 </ div >
161166 ) }
162- < div className = "row" >
163- < p className = "qr-description" >
164- Scan the QR code with your installed Defguard app. If you haven't installed it
165- yet, use your device's app store or the link below.
166- </ p >
167- </ div >
168167 < div className = "row" >
169168 < a
170169 href = { sharedLinks . client . download . android }
0 commit comments