feat(keycloak) Optional Keycloak integration via OpenId Connect (OIDC) for Identity and Access Management (#227)
This commit is contained in:
1 parent
03d0798459
commit
33755f7b8b
25 files changed
+294
-11
No files matched your search
@@ -0,0 +1,4 @@
|
||||
<template name="keycloakLoginButton">
|
||||
<hr/>
|
||||
<button class="form-control btn js-login-keycloak">Login with Keycloak</button>
|
||||
</template>
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Template } from 'meteor/templating';
|
||||
import { Router } from 'meteor/clinical:router';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
import './keycloakLoginButton.html';
|
||||
|
||||
Template.keycloakLoginButton.events({
|
||||
'click .js-login-keycloak'() {
|
||||
Meteor.loginWithMeteorKeycloak({}, function(error) {
|
||||
if (error) {
|
||||
throw new Error(error);
|
||||
}
|
||||
|
||||
Router.go('/studylist');
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user