Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions public-gui/tiqrauth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<title>Opening eduID App</title>
<script src="script.js" defer></script>
</head>
<body>
<p>Opening eduID app...</p>
</body>
</html>
16 changes: 16 additions & 0 deletions public-gui/tiqrauth/script.js
Original file line number Diff line number Diff line change
@@ -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;
Comment thread Fixed
Comment thread Dismissed
}
}
});
Loading