Skip to content
Snippets Groups Projects
Commit 74123415 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Update vpu-common

parent e6b94f1f
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ import consts from 'rollup-plugin-consts'; ...@@ -10,6 +10,7 @@ import consts from 'rollup-plugin-consts';
import del from 'rollup-plugin-delete'; import del from 'rollup-plugin-delete';
import chai from 'chai'; import chai from 'chai';
const pkg = require('./package.json');
const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local'; const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local';
console.log("build: " + build); console.log("build: " + build);
...@@ -58,7 +59,7 @@ export default { ...@@ -58,7 +59,7 @@ export default {
copy({ copy({
targets: [ targets: [
{src: 'assets/index.html', dest:'dist'}, {src: 'assets/index.html', dest:'dist'},
{src: 'assets/silent-check-sso.html', dest:'dist'}, {src: 'assets/silent-check-sso.html', dest: 'dist/local/' + pkg.name},
{src: 'assets/favicon.ico', dest:'dist'}, {src: 'assets/favicon.ico', dest:'dist'},
{src: 'node_modules/vpu-common/assets/icons/*.svg', dest: 'dist/local/vpu-common/icons'}, {src: 'node_modules/vpu-common/assets/icons/*.svg', dest: 'dist/local/vpu-common/icons'},
] ]
......
...@@ -39,7 +39,7 @@ class AuthDemo extends ScopedElementsMixin(LitElement) { ...@@ -39,7 +39,7 @@ class AuthDemo extends ScopedElementsMixin(LitElement) {
console.error("not logged in"); console.error("not logged in");
return; return;
} }
let userInfoURL = commonUtils.setting('keyCloakBaseURL') + '/realms/tugraz/protocol/openid-connect/userinfo'; let userInfoURL = 'https://auth-dev.tugraz.at/auth/realms/tugraz/protocol/openid-connect/userinfo';
// NOTE: the URL and realm need to match the keycloak config above // NOTE: the URL and realm need to match the keycloak config above
const response = await fetch( const response = await fetch(
...@@ -63,7 +63,7 @@ class AuthDemo extends ScopedElementsMixin(LitElement) { ...@@ -63,7 +63,7 @@ class AuthDemo extends ScopedElementsMixin(LitElement) {
} }
render() { render() {
const silentCheckSsoUri = commonUtils.getAssetURL('silent-check-sso.html'); const silentCheckSsoUri = commonUtils.getAssetURL('vpu-auth', 'silent-check-sso.html');
return html` return html`
<style> <style>
/* from BULMA.CSS */ /* from BULMA.CSS */
......
common @ 8c466476
Subproject commit 28492fe6e9f9683295a9b8f3c383c304969e7fee Subproject commit 8c46647624ad9d91316a4bad168d49221884efe2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment