kfu-24-teacher/stubs/api/keycloak.js

13 lines
243 B
JavaScript
Raw Permalink Normal View History

2024-12-14 13:03:47 +03:00
const Keycloak = require('keycloak-connect');
const kcConfig = {
clientId: 'kfu-m-24-1',
bearerOnly: true,
serverUrl: 'https://kc.bro-js.ru/',
realm: 'open'
};
const keycloak = new Keycloak({}, kcConfig);
module.exports = keycloak;