|
|
|
@ -68,15 +68,15 @@ const WebSSOForm: FC = () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (message) {
|
|
|
|
if (message) {
|
|
|
|
return <div className='flex h-full items-center justify-center'>
|
|
|
|
return <div className='flex h-full flex-col items-center justify-center gap-y-4'>
|
|
|
|
<AppUnavailable code={'App Unavailable'} unknownReason={message} />
|
|
|
|
<AppUnavailable className='h-auto w-auto' code={t('share.common.appUnavailable')} unknownReason={message} />
|
|
|
|
<Link href={getSigninUrl()}>{t('share.login.backToHome')}</Link>
|
|
|
|
<Link className='system-body-regular text-text-tertiary' href={getSigninUrl()}>{t('share.login.backToHome')}</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!redirectUrl) {
|
|
|
|
if (!redirectUrl) {
|
|
|
|
showErrorToast('redirect url is invalid.')
|
|
|
|
showErrorToast('redirect url is invalid.')
|
|
|
|
return <div className='flex h-full items-center justify-center'>
|
|
|
|
return <div className='flex h-full items-center justify-center'>
|
|
|
|
<AppUnavailable code={'App Unavailable'} unknownReason='redirect url is invalid.' />
|
|
|
|
<AppUnavailable code={t('share.common.appUnavailable')} unknownReason='redirect url is invalid.' />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (webAppAccessMode && webAppAccessMode === AccessMode.PUBLIC) {
|
|
|
|
if (webAppAccessMode && webAppAccessMode === AccessMode.PUBLIC) {
|
|
|
|
@ -98,9 +98,9 @@ const WebSSOForm: FC = () => {
|
|
|
|
if (webAppAccessMode && webAppAccessMode === AccessMode.EXTERNAL_MEMBERS)
|
|
|
|
if (webAppAccessMode && webAppAccessMode === AccessMode.EXTERNAL_MEMBERS)
|
|
|
|
return <ExternalMemberSsoAuth />
|
|
|
|
return <ExternalMemberSsoAuth />
|
|
|
|
|
|
|
|
|
|
|
|
return <div className='flex h-full items-center justify-center'>
|
|
|
|
return <div className='flex h-full flex-col items-center justify-center gap-y-4'>
|
|
|
|
<AppUnavailable code={'App Unavailable'} isUnknownReason={true} />
|
|
|
|
<AppUnavailable className='h-auto w-auto' code={t('share.common.appUnavailable')} isUnknownReason={true} />
|
|
|
|
<Link href={getSigninUrl()}>{t('share.login.backToHome')}</Link>
|
|
|
|
<Link className='system-body-regular text-text-tertiary' href={getSigninUrl()}>{t('share.login.backToHome')}</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|