Skip to content

Commit 9c19da6

Browse files
committed
IS-9422: adds template to evaluate browser context needed for BankID returnURL computation on the backend
1 parent 5ba1d1f commit 9c19da6

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#*
2+
* Copyright (C) 2025 Curity AB. All rights reserved.
3+
*
4+
* The contents of this file are the property of Curity AB.
5+
* You may not copy or use this file, in either source code
6+
* or executable form, except in compliance with terms
7+
* set by Curity AB.
8+
*
9+
* For further information, please contact Curity AB.
10+
*###
11+
12+
## redirect to the same URL
13+
#set ($_callbackUrl = "")
14+
## using a GET
15+
#set ($_callbackMethod = "get")
16+
#define($_formContent)
17+
## providing 'navigator.maxTouchPoints' in the 'nmtp' query-string variable
18+
<input type="hidden" name="nmtp" id="nmtp"/>
19+
<script type="text/javascript" $!nonceAttr>
20+
const nmtp = navigator.maxTouchPoints
21+
document.getElementById("nmtp").setAttribute("value", "" + nmtp)
22+
</script>
23+
24+
## just to ensure the query-string is not empty and we do not endup on an infinit loop
25+
<input type="hidden" name="ctx" value="1" />
26+
#end
27+
#parse("layouts/redirect")

0 commit comments

Comments
 (0)