-
Notifications
You must be signed in to change notification settings - Fork 659
[release-4.19] OCPBUGS-62083: /auth/error?error=missing_state&error_type=auth
is showing blank page
#15523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-4.19] OCPBUGS-62083: /auth/error?error=missing_state&error_type=auth
is showing blank page
#15523
Changes from 1 commit
0653502
977d1b9
15fc213
778dac1
b5c402e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -97,19 +97,27 @@ const LoginErrorMessage: React.FC = () => { | |||||||||
return t('public~There was an error generating login state.'); | ||||||||||
case 'cookie_error': | ||||||||||
return t('public~There was an error setting login state cookie'); | ||||||||||
case 'missing_code': | ||||||||||
return t('public~Auth code is missing in query param.'); | ||||||||||
case 'missing_state': | ||||||||||
return t('public~There was an error parsing your state cookie'); | ||||||||||
case 'invalid_code': | ||||||||||
return t('public~There was an error logging you in. Please log out and try again.'); | ||||||||||
case 'invalid_state': | ||||||||||
return t('public~There was an error verifying your session. Please log out and try again.'); | ||||||||||
case 'logout_error': | ||||||||||
return t('public~There was an error logging you out. Please try again.'); | ||||||||||
case 'auth': | ||||||||||
// When the error type is set as auth | ||||||||||
switch (error) { | ||||||||||
case 'missing_state': | ||||||||||
return t('public~There was an error parsing your state cookie'); | ||||||||||
|
||||||||||
case 'invalid_state': | ||||||||||
return t( | ||||||||||
'public~There was an error verifying your session. Please log out and try again.', | ||||||||||
); | ||||||||||
case 'missing_code': | ||||||||||
return t('public~Auth code is missing in query param.'); | ||||||||||
case 'invalid_code': | ||||||||||
return t('public~There was an error logging you in. Please log out and try again.'); | ||||||||||
default: | ||||||||||
return t('public~There was an authentication error. Please log out and try again.'); | ||||||||||
} | ||||||||||
default: | ||||||||||
return ( | ||||||||||
<Trans> | ||||||||||
<Trans ns="public"> | ||||||||||
There was an authentication error with the system: | ||||||||||
<CodeBlock> | ||||||||||
<CodeBlockCode>{error}</CodeBlockCode> | ||||||||||
|
@@ -122,6 +130,7 @@ const LoginErrorMessage: React.FC = () => { | |||||||||
export const AuthenticationErrorPage: React.FC = () => { | ||||||||||
const { t } = useTranslation(); | ||||||||||
const title = t('public~Authentication error'); | ||||||||||
|
||||||||||
return ( | ||||||||||
<> | ||||||||||
<DocumentTitle>{title}</DocumentTitle> | ||||||||||
|
@@ -139,7 +148,7 @@ export const AuthenticationErrorPage: React.FC = () => { | |||||||||
</Stack> | ||||||||||
} | ||||||||||
customFooter={ | ||||||||||
<ButtonLink variant="link" href="/logout"> | ||||||||||
<ButtonLink variant="primary" href="/logout"> | ||||||||||
{t('public~Try again')} | ||||||||||
|
<ButtonLink variant="primary" href="/logout"> | |
{t('public~Try again')} | |
<ButtonLink variant="primary" href="/logout"> | |
{t('public~Try again')} |
since href is triggering a log out, do we want to update the text to be "Log out" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link for that button will be updated to /
, which will redirect the user to the dashboard. So we would want to keep it as it is now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we update message to include period?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like this one also needs to be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opps I missed it, thanks for catching that @yapei , updated.