update: Integrate sib-oidc 0.5

This commit is contained in:
Jean-Baptiste 2019-04-03 13:28:47 +00:00
parent 878f6d1dfe
commit 3b7742eebf
2 changed files with 16 additions and 6 deletions

View File

@ -4,13 +4,8 @@
//- script(src="lib/html-imports.js")
script(
type="module"
src="https://unpkg.com/@startinblox/oidc@0.5"
data-authority=`${sdn}/openid/`,
data-client_id=`${client_id}`,
data-response_type='id_token token',
data-scope='openid profile email',
data-automaticSilentRenew='true',
data-loadUserInfo='true'
)
script(src="/scripts/index.js")

View File

@ -20,3 +20,18 @@ sib-display#profile(
bind-user
)
button#login(onclick="document.querySelector('sib-auth').login();") login
sib-auth
sib-auth-provider(
class="sib-auth-provider"
data-authority=`${sdn}/openid/`
data-client_id=`${client_id}`,
data-id="paris"
data-response_type='id_token token',
data-scope='openid profile email',
data-automaticSilentRenew='true',
data-loadUserInfo='true'
)