other realm
This commit is contained in:
parent
4b1c9f86f0
commit
f7a8c9e077
@ -2,6 +2,6 @@ import Keycloak from 'keycloak-js';
|
||||
|
||||
export const keycloak = new Keycloak({
|
||||
url: 'https://kc.inno-js.ru',
|
||||
realm: 'test',
|
||||
realm: 'inno-js',
|
||||
clientId: 'jurnal'
|
||||
});
|
@ -6,9 +6,9 @@ import { keycloak } from './__data__/const';
|
||||
|
||||
export default () => <App/>;
|
||||
|
||||
|
||||
|
||||
const start = async () => {
|
||||
// onLoad: 'check-sso',
|
||||
// silentCheckSsoRedirectUri: `${location.origin}/silent-check-sso.html`
|
||||
try {
|
||||
const authenticated = await keycloak.init({ onLoad: 'login-required' });
|
||||
console.log(`User is ${authenticated ? 'authenticated' : 'not authenticated'}`);
|
||||
|
Loading…
Reference in New Issue
Block a user