Commit 732db8c2 authored by Axel Bocciarelli's avatar Axel Bocciarelli
Browse files

Move keycloak out for config folder

parent 0a562b87
......@@ -25,7 +25,7 @@ import MintSelectionPage from './containers/Selection/MintSelectionPage';
import BeamlineDataPage from './containers/BeamlineDataPage';
import { getRemainingSessionTime } from './helpers/auth';
import { doLogOut, doSilentRefreshFromSSO } from './actions/login';
import keycloak from './config/sso/keycloak';
import keycloak from './keycloak';
import Menu from './components/Menu/Menu';
import { fetchAllInvestigations } from './actions/investigations';
import { fetchDataCollections } from './actions/datacollections';
......
......@@ -6,7 +6,7 @@ import {
LOG_IN,
LOG_OUT,
} from '../constants/actionTypes';
import keycloak from '../config/sso/keycloak';
import keycloak from '../keycloak';
import ICAT from '../config/icat/icat';
export function doLogOut(params = { expired: false }) {
......
......@@ -3,7 +3,7 @@ import UI from '../../config/ui/config';
import Loader from '../Loader';
import ErrorUserMessage from '../UserMessages/ErrorUserMessage';
import AnonymousSignIn from './AnonymousSignIn';
import keycloak from '../../config/sso/keycloak';
import keycloak from '../../keycloak';
import { useSelector } from 'react-redux';
import { useLocation } from 'react-router';
import { Button, Alert } from 'react-bootstrap';
......
......@@ -5,7 +5,7 @@ import { Link } from 'react-router-dom';
import UI from '../../config/ui/config';
import BreadCrumbs from '../Breadcrumbs/BreadCrumbs';
import ManagerMenu from './ManagerMenu';
import keycloak from '../../config/sso/keycloak';
import keycloak from '../../keycloak';
import { useSelector, useDispatch } from 'react-redux';
import { doLogOut } from '../../actions/login';
import { fetchInvestigationsAsInstrumentScientist } from '../../actions/investigations';
......
import moment from 'moment';
import { store } from '../store';
import { doLogOut, doSignIn } from '../actions/login';
import keycloak from '../config/sso/keycloak';
import keycloak from '../keycloak';
import ICAT from '../config/icat/icat';
export function getRemainingSessionTime(expirationTime) {
......
......@@ -20,7 +20,7 @@ import { unregister } from './registerServiceWorker';
import { persistor, store } from './store';
import ScrollToTop from './components/ScrollToTop';
import { BrowserRouter } from 'react-router-dom';
import keycloak from './config/sso/keycloak';
import keycloak from './keycloak';
import { checkExpirationTime, matchAuthStateToSSO } from './helpers/auth';
import { doLogOut } from './actions/login';
......
import Keycloak from 'keycloak-js';
import ICAT from '../icat/icat';
import ICAT from './config/icat/icat';
const keycloak = ICAT.authentication.sso.enabled
? new Keycloak(ICAT.authentication.sso.configuration)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment