init
This commit is contained in:
73
nv/html/nv-nopdf/styles/packages/mxab_accounts-keycloak.js
Normal file
73
nv/html/nv-nopdf/styles/packages/mxab_accounts-keycloak.js
Normal file
@@ -0,0 +1,73 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
// This is a generated file. You can view the original //
|
||||
// source in your browser if your browser supports source maps. //
|
||||
// Source maps are supported by all recent versions of Chrome, Safari, //
|
||||
// and Firefox, and by Internet Explorer 11. //
|
||||
// //
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
(function () {
|
||||
|
||||
/* Imports */
|
||||
var Meteor = Package.meteor.Meteor;
|
||||
var global = Package.meteor.global;
|
||||
var meteorEnv = Package.meteor.meteorEnv;
|
||||
var Accounts = Package['accounts-base'].Accounts;
|
||||
var MeteorKeycloak = Package['mxab:keycloak-oauth'].MeteorKeycloak;
|
||||
var meteorInstall = Package.modules.meteorInstall;
|
||||
var meteorBabelHelpers = Package['babel-runtime'].meteorBabelHelpers;
|
||||
var Promise = Package.promise.Promise;
|
||||
var Symbol = Package['ecmascript-runtime-client'].Symbol;
|
||||
var Map = Package['ecmascript-runtime-client'].Map;
|
||||
var Set = Package['ecmascript-runtime-client'].Set;
|
||||
|
||||
var require = meteorInstall({"node_modules":{"meteor":{"mxab:accounts-keycloak":{"accounts-keycloak.js":function(){
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
// packages/mxab_accounts-keycloak/accounts-keycloak.js //
|
||||
// //
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
var keycloakServiceName = 'keycloak';
|
||||
Accounts.oauth.registerService(keycloakServiceName);
|
||||
|
||||
if (Meteor.isClient) {
|
||||
var loginWithMeteorKeycloak = function (options, callback) {
|
||||
// support a callback without options
|
||||
if (!callback && typeof options === "function") {
|
||||
callback = options;
|
||||
options = null;
|
||||
}
|
||||
|
||||
var credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback);
|
||||
MeteorKeycloak.requestCredential(options, credentialRequestCompleteCallback);
|
||||
};
|
||||
|
||||
Accounts.registerClientLoginFunction(keycloakServiceName, loginWithMeteorKeycloak);
|
||||
|
||||
Meteor.loginWithMeteorKeycloak = function () {
|
||||
return Accounts.applyLoginFunction(keycloakServiceName, arguments);
|
||||
};
|
||||
} else {
|
||||
Accounts.addAutopublishFields({
|
||||
forLoggedInUser: ['services.keycloak'],
|
||||
forOtherUsers: ['services.keycloak.id', 'services.keycloak.name']
|
||||
});
|
||||
}
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
}}}}},{
|
||||
"extensions": [
|
||||
".js",
|
||||
".json"
|
||||
]
|
||||
});
|
||||
require("/node_modules/meteor/mxab:accounts-keycloak/accounts-keycloak.js");
|
||||
|
||||
/* Exports */
|
||||
Package._define("mxab:accounts-keycloak");
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user