diff options
Diffstat (limited to 'id/server/auth/src/main/webapp/iframeOnlineBKU.html')
-rw-r--r-- | id/server/auth/src/main/webapp/iframeOnlineBKU.html | 70 |
1 files changed, 37 insertions, 33 deletions
diff --git a/id/server/auth/src/main/webapp/iframeOnlineBKU.html b/id/server/auth/src/main/webapp/iframeOnlineBKU.html index b0f6b8bb0..4873245be 100644 --- a/id/server/auth/src/main/webapp/iframeOnlineBKU.html +++ b/id/server/auth/src/main/webapp/iframeOnlineBKU.html @@ -6,50 +6,54 @@ <meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<script type="text/javascript">
- window.onload=function() {
-
- var bkuURI = get_url_param("bkuURI", "Template");
- var Template = get_url_param("Template", "startAuth");
- var startAuth = get_url_param("startAuth", "useMandate");
- var useMandate = get_url_param("useMandate", "");
+ // [MUSS] Geben Sie hier die URL zum Aufruf von MOA-ID an
+ // z.B.: https://yoururl.at/moa-id-auth/StartAuthentication?Target=IT&OA=https://youronlineapplication.at
+ var MOA_ID_STARTAUTHENTICATION = "[MOA_ID_STARTAUTHENTICATION]";
- document.moaidform.useMandate.value = useMandate;
- document.moaidform.action = startAuth;
- document.moaidform.Template.value = Template;
- document.moaidform.bkuURI.value = bkuURI;
+ // [MUSS] Geben Sie hier die URL zum MOA-ID Template fuer die Online BKU an
+ // z.B.: "https://yoururl.at/moa-id-auth/template_onlineBKU.html"
+ var URL_TO_ONLINEBKU_TEMPLATE = "[URL_TO_ONLINEBKU_TEMPLATE]";
+
+ // [MUSS] Geben Sie hier die URL zur Online BKU an
+ // z.B.: value="https://yoururl.at/bkuonline/https-security-layer-request"
+ // Hinweis: Diese URL muss auch bei den vertrauenswürdigen BKUs in der MOA-ID Konfiguration angegeben werden (siehe Element MOA-IDConfiguration/TrustedBKUs/BKUURL)
+ var URL_TO_ONLINEBKU = "[URL_TO_ONLINEBKU]";
+
+ window.onload=function() {
+ document.getElementById('moaidform').action = MOA_ID_STARTAUTHENTICATION;
+ document.getElementById('Template').value = URL_TO_ONLINEBKU_TEMPLATE;
+ document.getElementById('bkuURI').value = URL_TO_ONLINEBKU;
- document.moaidform.submit();
+ var useMandate = gup("useMandate");
+
+ if (useMandate == "true")
+ document.getElementById('useMandate').value = "true";
+ else
+ document.getElementById('useMandate').value = "false";
+ document.moaidform.submit();
return;
}
- function get_url_param(name, follower) {
-
- var url = window.location.href;
- var i = url.indexOf(name);
- url = url.substring(i + name.length+1, url.length);
- if (follower.length != 0) {
- i = url.indexOf(follower);
- url = url.substring(0, i-1);
- }
-
-
- // alert (name + ": " + url);
-
- return url;
-
+ function gup(name) {
+ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
+ var regexS = "[\\?&]"+name+"=([^&#]*)";
+ var regex = new RegExp( regexS );
+ var results = regex.exec( window.location.href );
+ if( results == null )
+ return "";
+ else
+ return results[1];
}
-
-
</script>
</head>
<body>
Bitte warten...
-
- <form method="POST" name="moaidform">
- <input type="hidden" name="Template">
- <input type="hidden" name="bkuURI">
- <input type="hidden" name="useMandate">
+
+ <form method="POST" name="moaidform" id="moaidform">
+ <input type="hidden" name="Template" id="Template">
+ <input type="hidden" name="bkuURI" id="bkuURI">
+ <input type="hidden" name="useMandate" id="useMandate">
</form>
<hr>
|