1
0
mirror of https://github.com/bitwarden/web synced 2026-01-04 17:43:47 +00:00
This commit is contained in:
Joseph Flinn
2021-05-12 10:22:13 -07:00
parent a6ccedac94
commit b1caab4e9e
37 changed files with 44 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
html,body{margin:0;padding:0}body{background:#efeff4 url(../images/loading.svg) 0 0 no-repeat}iframe{display:block;width:100%;height:400px;border:none;margin:0;padding:0}
/*# sourceMappingURL=duo.f13a80ccb7f6590d700e.css.map*/
/*# sourceMappingURL=duo.98a9c1945051671a7214.css.map*/

View File

@@ -1 +1 @@
{"version":3,"sources":["webpack:///./src/connectors/duo.scss"],"names":[],"mappings":"AAAA,UAAU,SAAS,UAAU,KAAK,4DAA4D,OAAO,cAAc,WAAW,aAAa,YAAY,SAAS","file":"connectors/duo.f13a80ccb7f6590d700e.css","sourcesContent":["html,body{margin:0;padding:0}body{background:#efeff4 url(../images/loading.svg) 0 0 no-repeat}iframe{display:block;width:100%;height:400px;border:none;margin:0;padding:0}\n"],"sourceRoot":""}
{"version":3,"sources":["webpack:///./src/connectors/duo.scss"],"names":[],"mappings":"AAAA,UAAU,SAAS,UAAU,KAAK,4DAA4D,OAAO,cAAc,WAAW,aAAa,YAAY,SAAS","file":"connectors/duo.98a9c1945051671a7214.css","sourcesContent":["html,body{margin:0;padding:0}body{background:#efeff4 url(../images/loading.svg) 0 0 no-repeat}iframe{display:block;width:100%;height:400px;border:none;margin:0;padding:0}\n"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1100)}({1100:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(196);n(1101),document.addEventListener("DOMContentLoaded",(function(e){var t=o.getQsParam("code"),n=o.getQsParam("state");if(null!=n&&n.includes(":clientId=browser"))!function(e,t){window.postMessage({command:"authResult",code:e,state:t},"*");var n=("; "+document.cookie).split("; ssoHandOffMessage=").pop().split(";").shift();document.cookie="ssoHandOffMessage=;SameSite=strict;max-age=0",document.getElementById("content").innerHTML="<p>"+n+"</p>"}(t,n);else{window.location.href=window.location.origin+"/#/sso?code="+t+"&state="+n;var r=function(e,t){var n=new RegExp(t).exec(e);if(!n)return null;return n[0]}(n,"(?<=_returnUri=')(.*)(?=')");window.location.href=r?window.location.origin+"/#"+r:window.location.origin+"/#/sso?code="+t+"&state="+n}}))},1101:function(e,t,n){},196:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQsParam=function(e){var t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}}});
//# sourceMappingURL=sso.f13a80ccb7f6590d700e.js.map
//# sourceMappingURL=sso.98a9c1945051671a7214.js.map

View File

@@ -1,2 +1,2 @@
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1095)}({1095:function(e,r,t){"use strict";t.r(r);var n=t(528);document.addEventListener("DOMContentLoaded",(function(e){var r;s(),window.addEventListener("message",(function(e){e.origin&&""!==e.origin&&e.origin===a&&("stop"===e.data?i=!0:"start"===e.data&&i&&s())}),!1),r="ready",parent.postMessage("info|"+r,o)}));var o=null,a=null,i=!1,u=!1;function s(){if(u=!1,n.isSupported){var e=f("data");if(e)if(o=f("parent")){var r=document.createElement("a");r.href=o,a=r.origin;var t=f("v");if(t){try{parseInt(t);var s=(l=e,decodeURIComponent(Array.prototype.map.call(atob(l),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))),d=JSON.parse(s)}catch(p){return void c("Cannot parse data.")}var l;d.appId&&d.challenge&&d.keys&&d.keys.length?(i=!1,function e(r){if(i)return;n.sign(r.appId,r.challenge,r.keys,(function(t){t.errorCode?5!==t.errorCode?(c("U2F Error: "+t.errorCode),setTimeout((function(){e(r)}),1e3)):e(r):function(e){if(u)return;var r=JSON.stringify(e);parent.postMessage("success|"+r,o),u=!0}(t)}),10)}(d)):c("Invalid data parameters.")}else c("No version.")}else c("No parent.");else c("No data.")}else c("U2F is not supported in this browser.")}function c(e){parent.postMessage("error|"+e,o)}function f(e){var r=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(r);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}},528:function(e,r){e.exports=u2f}});
//# sourceMappingURL=u2f.f13a80ccb7f6590d700e.js.map
//# sourceMappingURL=u2f.98a9c1945051671a7214.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1096)}({1096:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(196),a=n(526);n(527),document.addEventListener("DOMContentLoaded",(function(){var e;l(),window.addEventListener("message",(function(e){e.origin&&""!==e.origin&&e.origin===i&&("stop"===e.data?u=!0:"start"===e.data&&u&&l())}),!1),e="ready",parent.postMessage("info|"+e,o);var t=r.getQsParam("btnText");if(t){var n=document.getElementById("webauthn-button");n.innerText=decodeURI(t),n.onclick=f}}));var o=null,i=null,u=!1,c=!1,s=null;function l(){if(c=!1,"credentials"in navigator){var e=r.getQsParam("data");if(e)if(o=r.getQsParam("parent")){o=decodeURIComponent(o),i=new URL(o).origin;try{var t=a.b64Decode(e);s=JSON.parse(t)}catch(l){return void d("Cannot parse data.")}var n=s.challenge.replace(/-/g,"+").replace(/_/g,"/");s.challenge=Uint8Array.from(atob(n),(function(e){return e.charCodeAt(0)})),s.allowCredentials.forEach((function(e){var t=e.id.replace(/\_/g,"/").replace(/\-/g,"+");e.id=Uint8Array.from(atob(t),(function(e){return e.charCodeAt(0)}))})),u=!1,-1!==navigator.userAgent.indexOf(" Safari/")&&-1===navigator.userAgent.indexOf("Chrome")||f()}else d("No parent.");else d("No data.")}else d("WebAuthn is not supported in this browser.")}function f(){u||navigator.credentials.get({publicKey:s}).then(p).catch((function(e){return d("WebAuth Error: "+e)}))}function d(e){parent.postMessage("error|"+e,o)}function p(e){if(!c){var t=a.buildDataString(e);parent.postMessage("success|"+t,o),c=!0}}},196:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQsParam=function(e){var t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},526:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)&&(e=Uint8Array.from(e)),e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array){for(var t="",n=e.byteLength,r=0;r<n;r++)t+=String.fromCharCode(e[r]);e=window.btoa(t)}if("string"!=typeof e)throw new Error("could not coerce to string");return e=e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=*$/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.buildDataString=function(e){var t=e.response,n=new Uint8Array(t.authenticatorData),a=new Uint8Array(t.clientDataJSON),o=new Uint8Array(e.rawId),i=new Uint8Array(t.signature),u={id:e.id,rawId:r(o),type:e.type,extensions:e.getClientExtensionResults(),response:{authenticatorData:r(n),clientDataJson:r(a),signature:r(i)}};return JSON.stringify(u)},t.b64Decode=function(e){return decodeURIComponent(Array.prototype.map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}},527:function(e,t,n){}});
//# sourceMappingURL=webauthn.98a9c1945051671a7214.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1096)}({1096:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(196),a=n(526);n(527),document.addEventListener("DOMContentLoaded",(function(){var e;l(),window.addEventListener("message",(function(e){e.origin&&""!==e.origin&&e.origin===i&&("stop"===e.data?u=!0:"start"===e.data&&u&&l())}),!1),e="ready",parent.postMessage("info|"+e,o);var t=r.getQsParam("btnText");t&&(document.getElementById("webauthn-button").innerText=decodeURI(t))}));var o=null,i=null,u=!1,c=!1,s=null;function l(){if(c=!1,"credentials"in navigator){var e=r.getQsParam("data");if(e)if(o=r.getQsParam("parent")){o=decodeURIComponent(o),i=new URL(o).origin;try{var t=a.b64Decode(e);s=JSON.parse(t)}catch(l){return void f("Cannot parse data.")}var n=s.challenge.replace(/-/g,"+").replace(/_/g,"/");s.challenge=Uint8Array.from(atob(n),(function(e){return e.charCodeAt(0)})),s.allowCredentials.forEach((function(e){var t=e.id.replace(/\_/g,"/").replace(/\-/g,"+");e.id=Uint8Array.from(atob(t),(function(e){return e.charCodeAt(0)}))})),u=!1,-1!==navigator.userAgent.indexOf(" Safari/")&&-1===navigator.userAgent.indexOf("Chrome")||d()}else f("No parent.");else f("No data.")}else f("WebAuthn is not supported in this browser.")}function d(){u||navigator.credentials.get({publicKey:s}).then(p).catch((function(e){return f("WebAuth Error: "+e)}))}function f(e){parent.postMessage("error|"+e,o)}function p(e){if(!c){var t=a.buildDataString(e);parent.postMessage("success|"+t,o),c=!0}}window.executeWebAuthn=d},196:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQsParam=function(e){var t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},526:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)&&(e=Uint8Array.from(e)),e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array){for(var t="",n=e.byteLength,r=0;r<n;r++)t+=String.fromCharCode(e[r]);e=window.btoa(t)}if("string"!=typeof e)throw new Error("could not coerce to string");return e=e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=*$/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.buildDataString=function(e){var t=e.response,n=new Uint8Array(t.authenticatorData),a=new Uint8Array(t.clientDataJSON),o=new Uint8Array(e.rawId),i=new Uint8Array(t.signature),u={id:e.id,rawId:r(o),type:e.type,extensions:e.getClientExtensionResults(),response:{authenticatorData:r(n),clientDataJson:r(a),signature:r(i)}};return JSON.stringify(u)},t.b64Decode=function(e){return decodeURIComponent(Array.prototype.map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}},527:function(e,t,n){}});
//# sourceMappingURL=webauthn.f13a80ccb7f6590d700e.js.map

File diff suppressed because one or more lines are too long