check-sso or login
This commit is contained in:
parent
c38f31b0ff
commit
db6c735fdc
@ -14,6 +14,7 @@ const start = async () => {
|
|||||||
console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`);
|
console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to initialize adapter:', error);
|
console.error('Failed to initialize adapter:', error);
|
||||||
|
keycloak.login();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,10 +88,12 @@ export const Journal = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<StartWrapper>
|
<StartWrapper>
|
||||||
<IconButton onClick={send} title="Запрос">
|
<div>
|
||||||
<ArrowImg src={arrow} />
|
<IconButton onClick={send} title="Запрос">
|
||||||
</IconButton>
|
<ArrowImg src={arrow} />
|
||||||
<pre>{JSON.stringify(answer, null, 4)}</pre>
|
</IconButton>
|
||||||
|
<pre>{JSON.stringify(answer, null, 4)}</pre>
|
||||||
|
</div>
|
||||||
<form onSubmit={handleSubmit}>
|
<form onSubmit={handleSubmit}>
|
||||||
<InputWrapper>
|
<InputWrapper>
|
||||||
<InputLabel htmlFor="input">Название новой лекции:</InputLabel>
|
<InputLabel htmlFor="input">Название новой лекции:</InputLabel>
|
||||||
|
Loading…
Reference in New Issue
Block a user