Another attempt at Auth0 Lock w/ Aurelia

This commit is contained in:
Daniel J. Summers committed 2017-06-01 21:31:25 -05:00
1 parent 55cf47af18
commit 0ce5824c55
2 files changed
+13 -2

No files matched your search

+3 -2
View File
@@ -155,8 +155,9 @@
},
{
"name": "auth0-lock",
"path": "../node_modules/auth0-lock",
"main": "lib/index"
"path": "lib",
"main": "lock.min",
"exports": "Auth0Lock"
}
]
}
+10
View File
@@ -0,0 +1,10 @@
/*!
* lock v10.16.0
*
* Author: Auth0 <support@auth0.com> (http://auth0.com)
* Date: 5/8/2017, 8:23:20 PM
* License: MIT
*
*/
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=366)}([function(t,e,n){"use strict";t.exports=n(26)},function(t,e,n){"use strict";function r(t,e,n,r,i,o){var a=jt(t,at.a.fromJS({clientBaseUrl:z(r,n),tenantBaseUrl:v(r,n),languageBaseUrl:b(r,n),auth:m(r),clientID:e,domain:n,emitEventFn:o,hookRunner:i,useTenantInfo:r.__useTenantInfo||!1,oidcConformant:r.oidcConformant||!1,hashCleanup:r.hashCleanup!==!1,allowedConnections:at.a.fromJS(r.allowedConnections||[]),ui:L(t,r),defaultADUsernameFromEmailPrefix:r.defaultADUsernameFromEmailPrefix!==!1,prefill:r.prefill||{}}));return a=lt.initI18n(a)}function i(t){return t.get("id")}function o(t){return Dt(t,"clientID")}function a(t){return Dt(t,"domain")}function s(t){return Dt(t,"clientBaseUrl")}function u(t){return Dt(t,"tenantBaseUrl")}function c(t){return Dt(t,"useTenantInfo")}function l(t){return Dt(t,"oidcConformant")}function M(t){return Dt(t,"languageBaseUrl")}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t=wt(t,"submitting",e),t=D(t),t=n&&!e?d(t,n):f(t)}function g(t){return mt(t,"submitting",!1)}function d(t,e){return wt(t,"globalError",e)}function h(t){return mt(t,"globalError","")}function f(t){return zt(t,"globalError")}function y(t,e){return wt(t,"globalSuccess",e)}function N(t){return mt(t,"globalSuccess","")}function D(t){return zt(t,"globalSuccess")}function j(t){return mt(t,"render",!1)}function I(t){return zt(t,"render")}function L(t,e){var r=!e.container&&(void 0===e.closable||!!e.closable),i=e.theme||{},o=i.labeledSubmitButton,a=i.hideMainScreenTitle,s=i.logo,u=i.primaryColor,c=i.authButtons,l=null!==e.avatar,M=e.avatar&&"function"==typeof e.avatar.url&&"function"==typeof e.avatar.displayName&&e.avatar,p=M||gt;return new at.a.fromJS({containerID:e.container||"auth0-lock-container-"+t,appendContainer:!e.container,autoclose:void 0!==e.autoclose&&(r&&e.autoclose),autofocus:void 0===e.autofocus?!(e.container||n.i(st.a)()):!!e.autofocus,avatar:l,avatarProvider:p,logo:"string"==typeof s?s:void 0,closable:r,hideMainScreenTitle:!!a,labeledSubmitButton:void 0===o||!!o,language:void 0===e.language?"en":pt()(e.language||"").toLowerCase(),dict:"object"===yt(e.languageDictionary)?e.languageDictionary:{},disableWarnings:void 0!==e.disableWarnings&&!!e.disableWarnings,mobile:void 0!==e.mobile&&!!e.mobile,popupOptions:void 0===e.popupOptions?{}:e.popupOptions,primaryColor:"string"==typeof u?u:void 0,rememberLastLogin:void 0===e.rememberLastLogin||!!e.rememberLastLogin,authButtonsTheme:"object"===(void 0===c?"undefined":yt(c))?c:{}})}function m(t){var e=t.auth||{},n=e.audience,r=e.connectionScopes,i=e.params,o=e.autoParseHash,a=e.redirect,s=e.redirectUrl,u=e.responseMode,c=e.responseType,l=e.sso,M=e.state,p=e.nonce,g=t.oidcConformant;if(n="string"==typeof n?n:void 0,r="object"===(void 0===r?"undefined":yt(r))?r:{},i="object"===(void 0===i?"undefined":yt(i))?i:{},s="string"==typeof s&&s?s:null,o="boolean"!=typeof o||o,a="boolean"!=typeof a||a,u="string"==typeof u?u:void 0,M="string"==typeof M?M:void 0,p="string"==typeof p?p:void 0,c="string"==typeof c?c:s?"code":"token",s=s||window.location.href,l="boolean"!=typeof l||l,g||"openid profile"!==pt()(i.scope||"")||O(t,"Usage of scope 'openid profile' is not recommended. See https://auth0.com/docs/scopes for more details."),g&&!a&&c.indexOf("id_token")>-1)throw new Error("It is not possible to request an 'id_token' while using popup mode.");if(!g&&n)throw new Error("It is not possible to use the `auth.audience` option when the `oidcConformant` flag is set to false");return g||i.scope||(i.scope="openid"),at.a.fromJS({audience:n,connectionScopes:r,params:i,autoParseHash:o,redirect:a,redirectUrl:s,responseMode:u,responseType:c,sso:l,state:M,nonce:p})}function w(t,e){return at.a.fromJS(e).merge(Dt(t,"auth")).toJS()}function z(t,e){if(t.clientBaseUrl&&"string"==typeof t.clientBaseUrl)return t.clientBaseUrl;if(t.configurationBaseUrl&&"string"==typeof t.configurationBaseUrl)return t.configurationBaseUrl;if(t.assetsUrl&&"string"==typeof t.assetsUrl)return t.assetsUrl;var r="https://"+e,i=n.i(ct.a)(r).hostname,o=".auth0.com";if(n.i(ut.a)(i,o)){var a=i.split(".");return a.length>3?"https://cdn."+a[a.length-3]+o:"https://cdn.auth0.com"}return r}function v(t,e){if(t.configurationBaseUrl&&"string"==typeof t.configurationBaseUrl)return it()(t.configurationBaseUrl,"info-v1.js");if(t.assetsUrl&&"string"==typeof t.assetsUrl)return t.assetsUrl;var e,r="https://"+e,i=n.i(ct.a)(r).hostname,o=".auth0.com",a="https://cdn.auth0.com",s=i.split("."),u=s[0];return n.i(ut.a)(i,o)?(e=sLine truncated
//# sourceMappingURL=lock.min.js.map