From 8645816c74be47cdbab7d386f097ff6c742192f0 Mon Sep 17 00:00:00 2001 From: Gemma Date: Wed, 13 Mar 2024 10:43:04 +0100 Subject: [PATCH] keycloak config --- frontend/src/components/SignIn/SignInFormNoLS.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/SignIn/SignInFormNoLS.js b/frontend/src/components/SignIn/SignInFormNoLS.js index 9461ade..d5d62ea 100644 --- a/frontend/src/components/SignIn/SignInFormNoLS.js +++ b/frontend/src/components/SignIn/SignInFormNoLS.js @@ -1,10 +1,9 @@ import './SignInForm.css' -import { NavLink } from 'react-router-dom' +import configData from '../../config.json' import React, { Component, useState } from 'react' import { AuthContext } from '../context/AuthContext' import { useContext } from 'react' import { useNavigate } from 'react-router-dom' -import Navbar from '../NavBar/Navbar' export default function SignInFormNoLS () { const [userName, setUserName] = useState('dummy_user') @@ -55,7 +54,8 @@ export default function SignInFormNoLS () { formBody = formBody.join('&') const response = await fetch( - 'https://beacon-network-demo2.ega-archive.org/auth/realms/Beacon/protocol/openid-connect/token', + configData.KEYCLOAK_URL + + '/auth/realms/Beacon/protocol/openid-connect/token', { method: 'POST', headers: {