update: Integrate sib-oidc 0.5
This commit is contained in:
parent
878f6d1dfe
commit
3b7742eebf
@ -4,13 +4,8 @@
|
|||||||
//- script(src="lib/html-imports.js")
|
//- script(src="lib/html-imports.js")
|
||||||
|
|
||||||
script(
|
script(
|
||||||
|
type="module"
|
||||||
src="https://unpkg.com/@startinblox/oidc@0.5"
|
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")
|
script(src="/scripts/index.js")
|
||||||
|
@ -20,3 +20,18 @@ sib-display#profile(
|
|||||||
bind-user
|
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'
|
||||||
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user