Commit 82be47f1 authored by Nicolas Mérigot's avatar Nicolas Mérigot

documentation: add integration example

parent b6e9682b
Pipeline #1980 passed with stage
in 27 seconds
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>SIB-OIDC test</title>
<script type="module" src="sib-oidc.js"></script>
<button id="reset">clear storage and set new URL</button>
<button id="reload">reload</button>
reset.onclick = () => {
history.pushState({}, '', '.?time=' + new Date().toLocaleTimeString());
reload.onclick = () => location.reload();
<script type='module'>
import { SIBBase } from '';
class TestComponent extends SIBBase {
async connectedCallback() {
const user = await this.getUser();
this.innerHTML = JSON.stringify(user);
customElements.define('sib-test', TestComponent);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment