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
@@ -12,6 +12,10 @@
|
||||
{{>section 'userLoginFieldsAfter'}}
|
||||
<hr class="m-t-0 m-b-2">
|
||||
{{#button action='login' class='form-control btn btn-primary'}}Enter{{/button}}
|
||||
|
||||
{{ #each additionalLoginButtons }}
|
||||
{{>Template.dynamic template=template}}
|
||||
{{ /each }}
|
||||
{{/form}}
|
||||
</div>
|
||||
{{>section 'userLoginAfter'}}
|
||||
|
||||
@@ -33,3 +33,9 @@ Template.userLogin.onCreated(() => {
|
||||
|
||||
instance.schema = OHIF.user.schema;
|
||||
});
|
||||
|
||||
Template.userLogin.helpers({
|
||||
additionalLoginButtons() {
|
||||
return OHIF.user.additionalLoginButtons || [];
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
OHIF.user.getAccessToken = () => {};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import './data';
|
||||
import './getName';
|
||||
import './getAccessToken';
|
||||
import './login';
|
||||
import './logout';
|
||||
import './schema';
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Router } from 'meteor/clinical:router';
|
||||
|
||||
Router.route('/login', function() {
|
||||
this.layout('mainLayout', { data: {} });
|
||||
this.render('userLogin');
|
||||
}, { name: 'userLogin' });
|
||||
if (Meteor.settings.public.userAuthenticationRoutesEnabled === true) {
|
||||
Router.route('/login', function() {
|
||||
this.layout('layout', { data: {} });
|
||||
this.render('userLogin');
|
||||
}, { name: 'userLogin' });
|
||||
}
|
||||
Reference in new issue
Block a user