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

Update auth/common

parent 327e611b
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ import {i18n} from './i18n.js'; ...@@ -2,7 +2,7 @@ import {i18n} from './i18n.js';
import {css, html, LitElement} from 'lit-element'; import {css, html, LitElement} from 'lit-element';
import {ScopedElementsMixin} from '@open-wc/scoped-elements'; import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import {PersonSelect} from './person-select.js'; import {PersonSelect} from './person-select.js';
import {Auth} from 'vpu-auth'; import {AuthKeycloak, LoginButton} from 'vpu-auth';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles'; import * as commonStyles from 'vpu-common/styles';
...@@ -15,7 +15,8 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) { ...@@ -15,7 +15,8 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) {
static get scopedElements() { static get scopedElements() {
return { return {
'vpu-auth': Auth, 'vpu-auth-keycloak': AuthKeycloak,
'vpu-login-button': LoginButton,
'vpu-person-select': PersonSelect, 'vpu-person-select': PersonSelect,
}; };
} }
...@@ -49,7 +50,8 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) { ...@@ -49,7 +50,8 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) {
getAuthComponentHtml() { getAuthComponentHtml() {
return this.noAuth ? html`` : html` return this.noAuth ? html`` : html`
<div class="container"> <div class="container">
<vpu-auth lang="${this.lang}" client-id="${commonUtils.setting('keyCloakClientId')}" load-person></vpu-auth> <vpu-auth-keycloak lang="${this.lang}" url="https://auth-dev.tugraz.at/auth" realm="tugraz" client-id="auth-dev-mw-frontend-local" load-person try-login></vpu-auth-keycloak>
<vpu-login-button lang="${this.lang}" show-image></vpu-login-button>
</div> </div>
`; `;
} }
......
auth @ 39d0e356
Subproject commit d3c04ca3eabebe0505ed09dd0a70255329e33a53 Subproject commit 39d0e356c029e0f2e92233520660ce307d0741d5
common @ 63b49c3a
Subproject commit 28492fe6e9f9683295a9b8f3c383c304969e7fee Subproject commit 63b49c3a2eeae312b4a2aeec4cc2f7f0ee12b749
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