-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
[UPLOAD-1224] replace react-keycloak
with react-oidc-context
#1632
Conversation
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.
LGTM 🔥
With the assumption that we no longer need to log errors to rollbar in auth.js, as mentioned in my comment.
app/auth.js
Outdated
import * as ActionTypes from './constants/actionTypes'; | ||
import { sync, async } from './actions'; | ||
import api from '../lib/core/api'; | ||
import rollbar from './utils/rollbar'; |
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.
I noticed that rollbar
is no longer used. If this is intentionally left out from the conversion from keycloak.js
, then the import should likely be removed
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.
Ah yeah, the new library doesn't really have code paths for the sort of error that we were experiencing and logging for the Keycloak version. I'll drop the import.
corrects manual logout redirecting to "logged out" page instead of "login" and prevents auto-login on "login" page if #state is still valid
@krystophv We can merge this into the UiW branch, right? |
@gniezen Yeah, will merge now. |
For UPLOAD-1224, pretty much what it says on the tin.
react-keycloak
is a dead/archived project at this point, so replacing it is the prudent thing to do. Was hoping that the diff would pick upkeycloak.js
->auth.js
as a rename, but I guess it was different enough that it treats it as a separate file. Some pieces of it got much simpler, some more complex. It still relies onkeycloak.js
for some specifics like generating the registration URL and logout URL (which is more relevant onblip
, but for the sake of parity is also included here).