feat(openid-connect): Switch to generic OIDC Client library instead of using Keycloak.js (#273)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2018-09-19 14:50:12 +02:00
1 parent 2f05ed5961
commit 18bcf83805
70 files changed
+572 -655

No files matched your search

+1
View File
@@ -4,3 +4,4 @@ import './string.js';
import './ui.js';
import './utils.js';
import './viewer.js';
import './user.js';
+16
View File
@@ -0,0 +1,16 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
OHIF.user = OHIF.user || {};
// These should be overridden by the implementation
OHIF.user.schema = null;
OHIF.user.userLoggedIn = () => false;
OHIF.user.getUserId = () => null;
OHIF.user.getName = () => null;
OHIF.user.getAccessToken = () => null;
OHIF.user.login = () => new Promise((resolve, reject) => reject());
OHIF.user.logout = () => new Promise((resolve, reject) => reject());
OHIF.user.getData = (key) => null;
OHIF.user.setData = (key, value) => null;
OHIF.user.validate = () => null;