diff --git a/public-gui/tiqrauth/index.html b/public-gui/tiqrauth/index.html new file mode 100644 index 000000000..7c037c4cf --- /dev/null +++ b/public-gui/tiqrauth/index.html @@ -0,0 +1,11 @@ + + +
+ +Opening eduID app...
+ + diff --git a/public-gui/tiqrauth/script.js b/public-gui/tiqrauth/script.js new file mode 100644 index 000000000..680d45803 --- /dev/null +++ b/public-gui/tiqrauth/script.js @@ -0,0 +1,16 @@ +document.addEventListener("DOMContentLoaded", function () { + if (window.location.pathname === '/tiqrauth/' || window.location.pathname === '/tiqrauth') { + const params = new URLSearchParams(window.location.search); + + const u = params.get('u'); + const s = params.get('s'); + const q = params.get('q'); + const i = params.get('i'); + const v = params.get('v'); + + if (u && s && q && i && v) { + const tiqrUri = `eduidauth://${u}@${i}/${s}/${q}/${i}/${v}`; + window.location.href = tiqrUri; + } + } +});