Add OAuth support
This commit is contained in:
1 parent
0cbf15c46e
commit
9e7314e4a5
16 files changed
+273
-10531
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import React from "react";
|
||||
import { CallbackComponent } from "redux-oidc";
|
||||
import { withRouter } from "react-router-dom";
|
||||
import userManager from "./userManager";
|
||||
|
||||
class CallbackPage extends React.Component {
|
||||
render() {
|
||||
// just redirect to '/' in both cases
|
||||
return (
|
||||
<CallbackComponent
|
||||
userManager={userManager}
|
||||
successCallback={() => this.props.history.push("/")}
|
||||
errorCallback={error => {
|
||||
this.props.history.push("/");
|
||||
console.error(error);
|
||||
}}
|
||||
>
|
||||
<div>Redirecting...</div>
|
||||
</CallbackComponent>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default withRouter(CallbackPage);
|
||||
Reference in new issue
Block a user