Merge branch '104-sib-oidc' into 'master'

Resolve "Integrate sib-oidc 0.5"

Closes #104

See merge request startinblox/applications/sib-app!14
This commit is contained in:
Jean-Baptiste 2019-04-03 13:28:47 +00:00
commit 82113d9546
2 changed files with 16 additions and 6 deletions

View File

@ -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")

View File

@ -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'
)