[java-idp-plugin-webauthn] branch main updated: Minify webauthn-json JS
Phil Smart
philip.smart at jisc.ac.uk
Wed Aug 14 09:58:11 UTC 2024
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=5f78026694670ff13a9f881fe0376bf98f6cc751
The following commit(s) were added to refs/heads/main by this push:
new 5f78026 Minify webauthn-json JS
5f78026 is described below
commit 5f78026694670ff13a9f881fe0376bf98f6cc751
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Aug 14 10:58:08 2024 +0100
Minify webauthn-json JS
---
.../plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.min.js | 1 +
.../net/shibboleth/idp/plugin/authn/webauthn/module.properties | 4 ++--
.../net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-authn.vm | 2 +-
.../shibboleth/idp/plugin/authn/webauthn/views/webauthn-register.vm | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.min.js b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.min.js
new file mode 100644
index 0000000..cb83779
--- /dev/null
+++ b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.min.js
@@ -0,0 +1 @@
+function base64urlToBuffer(e){const t="==".slice(0,(4-e.length%4)%4),r=e.replace(/-/g,"+").replace(/_/g,"/")+t,n=atob(r),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return i}function bufferToBase64url(e){const t=new Uint8Array(e);let r="";for(const e of t)r+=String.fromCharCode(e);const n=btoa(r),i=n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return i}function convert(e,t,r){if(t===copyValue)return r;if(t===convertValue)retu [...]
\ No newline at end of file
diff --git a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/module.properties b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/module.properties
index 431e2c1..0cb8091 100644
--- a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/module.properties
+++ b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/module.properties
@@ -34,8 +34,8 @@ idp.authn.WebAuthn.7.src = /net/shibboleth/idp/plugin/authn/webauthn/css/webauth
idp.authn.WebAuthn.7.dest = edit-webapp/css/webauthn.css
idp.authn.WebAuthn.7.postenable = Customize edit-webapp/css/webauthn.css and rebuild war to deploy.
-idp.authn.WebAuthn.8.src = /net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.js
-idp.authn.WebAuthn.8.dest = edit-webapp/js/webauthn/webauthn-json.browser-ponyfill.js
+idp.authn.WebAuthn.8.src = /net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-json.browser-ponyfill.min.js
+idp.authn.WebAuthn.8.dest = edit-webapp/js/webauthn/webauthn-json.browser-ponyfill.min.js
idp.authn.WebAuthn.9.src = /net/shibboleth/idp/plugin/authn/webauthn/js/webauthn-support.js
idp.authn.WebAuthn.9.dest = edit-webapp/js/webauthn/webauthn-support.js
diff --git a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-authn.vm b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-authn.vm
index ec15eb3..9fc3516 100644
--- a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-authn.vm
+++ b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-authn.vm
@@ -42,7 +42,7 @@ $response.addHeader("Content-Security-Policy", "default-src 'none'; style-src 's
get,
parseRequestOptionsFromJSON,
supported,
- } from "$request.getContextPath()/js/webauthn/webauthn-json.browser-ponyfill.js";
+ } from "$request.getContextPath()/js/webauthn/webauthn-json.browser-ponyfill.min.js";
window.addEventListener("load", () => {
diff --git a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-register.vm b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-register.vm
index 4f7cc5b..65bcd60 100644
--- a/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-register.vm
+++ b/webauthn-impl/src/main/resources/net/shibboleth/idp/plugin/authn/webauthn/views/webauthn-register.vm
@@ -41,7 +41,7 @@ $response.addHeader("Content-Security-Policy", "default-src 'none'; style-src 's
parseCreationOptionsFromJSON,
create,
supported,
- } from "$request.getContextPath()/js/webauthn/webauthn-json.browser-ponyfill.js";
+ } from "$request.getContextPath()/js/webauthn/webauthn-json.browser-ponyfill.min.js";
async function register() {
clearMessages();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list