Add OAuth support

This commit is contained in:
Erik Ziegler committed 2019-01-07 19:17:10 +01:00
1 parent 0cbf15c46e
commit 9e7314e4a5
16 files changed
+273 -10531

No files matched your search

+24
View File
@@ -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);