Widget:RegistrationButton

From LINKS Community Center
Revision as of 13:16, 7 December 2021 by Kiehl (talk | contribs) (Created page with " <script src="https://idm.safetyid.eu/auth/js/keycloak.js"></script> <script> function initKeycloak() { var keycloak = new Keycloak(); k...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
   <script src="https://idm.safetyid.eu/auth/js/keycloak.js"></script>
   <script>
       function initKeycloak() {
           var keycloak = new Keycloak();
           keycloak.init().then(function(authenticated) {
               alert(authenticated ? 'authenticated' : 'not authenticated');
           }).catch(function() {
               alert('failed to initialize');
           });
       }
   </script>

</head> <body onload="initKeycloak()">