Widget:RegistrationButton

From LINKS Community Center
Revision as of 14:05, 7 December 2021 by Kiehl (talk | contribs)
Jump to: navigation, search
   <script src="https://idm.safetyid.eu/auth/js/keycloak.js"></script>
   <script>
       function initKeycloak() {
           var keycloak = new Keycloak({
   url: 'https://idm.safetyid.eu/auth',
   realm: 'SafetyID',
   clientId: 'https://idm.safetyid.eu/auth/realms/safetyid/account/'

});

           /*keycloak.init().then(function(authenticated) {
               alert(authenticated ? 'authenticated' : 'not authenticated');
           }).catch(function() {
               alert('failed to initialize');
           });*/

keycloak.init().then().catch(function() {

               alert('failed to initialize');
           });

console.log(keycloak.createRegisterUrl())

       }
   </script>

<script type="text/javascript">

 initKeycloak()

</script>