Widget: RegistrationButton: Difference between revisions
From LINKS Community Center
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...") |
Kiehl (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
} | } | ||
</script> | </script> | ||
</ | |||
<script type="text/javascript"> | |||
initKeycloak() | |||
</script> |
Revision as of 13:16, 7 December 2021
<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>
<script type="text/javascript">
initKeycloak()
</script>