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

+2 -2
View File
@@ -4,12 +4,12 @@ import StudyListWithData from './StudyListWithData.js';
const isActive = (a) => a.active === true;
const mapStateToProps = (state, ownProps) => {
const mapStateToProps = state => {
const activeServer = state.servers.servers.find(isActive);
return {
server: activeServer,
...ownProps
user: state.oidc.user,
};
};