diff options
author | kstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2011-04-06 19:44:10 +0000 |
---|---|---|
committer | kstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2011-04-06 19:44:10 +0000 |
commit | e2cdcaf1adc00a92ca4d21febd0a9be9e3aaf34c (patch) | |
tree | c70e319802d891ecd17b81d98dfcc2bbb495b472 /id/server/auth/src/main/webapp/iframeHandyBKU.html | |
parent | ac9a6c52e96f4c737de3392a7ba16b8fa8958b85 (diff) | |
download | moa-id-spss-e2cdcaf1adc00a92ca4d21febd0a9be9e3aaf34c.tar.gz moa-id-spss-e2cdcaf1adc00a92ca4d21febd0a9be9e3aaf34c.tar.bz2 moa-id-spss-e2cdcaf1adc00a92ca4d21febd0a9be9e3aaf34c.zip |
Update MOA Template
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1200 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id/server/auth/src/main/webapp/iframeHandyBKU.html')
-rw-r--r-- | id/server/auth/src/main/webapp/iframeHandyBKU.html | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/id/server/auth/src/main/webapp/iframeHandyBKU.html b/id/server/auth/src/main/webapp/iframeHandyBKU.html index 4661eea70..f07b73265 100644 --- a/id/server/auth/src/main/webapp/iframeHandyBKU.html +++ b/id/server/auth/src/main/webapp/iframeHandyBKU.html @@ -6,45 +6,55 @@ <meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<script type="text/javascript">
+ // [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]";
+
+ // [MUSS] Geben Sie hier die URL zum MOA-ID Template fuer die Handy Signatur an -->
+ <!-- z.B.: value="https://yoururl.at/moa-id-auth/template_handyBKU.html"-->
+ var URL_TO_HANDYSIGNATUR_TEMPLATE = "[URL_TO_HANDYSIGNATUR_TEMPLATE]";
+
+
window.onload=function() {
- var Template = get_url_param("Template", "startAuth");
- var startAuth = get_url_param("startAuth", "useMandate");
- var useMandate = get_url_param("useMandate", "");
-
- document.moaidform.useMandate.value = useMandate;
- document.moaidform.action = startAuth;
- document.moaidform.Template.value = Template;
+
+ document.getElementById('moaidform').action = MOA_ID_STARTAUTHENTICATION;
+ document.getElementById('Template').value = URL_TO_HANDYSIGNATUR_TEMPLATE;
+
+ 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);
- }
-
- 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...
+
+ Bitte warten...
+
+ <FORM name="moaidform" method="post" id="moaidform">
+ <input type="hidden" name="Template" id="Template">
+ <input type="hidden" name="bkuURI" value="https://www.handy-signatur.at/mobile/https-security-layer-request/default.aspx">
+ <input type="hidden" name="useMandate" id="useMandate">
+ </FORM>
- <form method="POST" name="moaidform">
- <input type="hidden" name="Template">
- <input type="hidden" name="bkuURI" value="https://www.handy-signatur.at/mobile/https-security-layer-request/default.aspx">
- <input type="hidden" name="useMandate">
- </form>
-
-
-
<hr>
</body>
|