diff --git a/privacyIDEAADFSProvider/AdapterPresentationForm.cs b/privacyIDEAADFSProvider/AdapterPresentationForm.cs
index edfa669..f09d662 100644
--- a/privacyIDEAADFSProvider/AdapterPresentationForm.cs
+++ b/privacyIDEAADFSProvider/AdapterPresentationForm.cs
@@ -1,4 +1,5 @@
using Microsoft.IdentityServer.Web.Authentication.External;
+using System.Diagnostics;
namespace privacyIDEAADFSProvider
{
@@ -27,7 +28,10 @@ public string GetFormHtml(int lcid)
{
foreach (ADFSinterface adfsui in inter)
{
- if (adfsui.LICD == lcid.ToString())
+#if DEBUG
+ Debug.WriteLine("LICD: "+adfsui.LICD+" - "+ lcid.ToString());
+#endif
+ if ((int)adfsui.LICD == (int)lcid)
{
errormessage = adfsui.errormessage;
wellcomemassage = adfsui.wellcomemessage;
@@ -64,7 +68,20 @@ public string GetFormPreRenderHtml(int lcid)
//returns the title string for the web page which presents the HTML form content to the end user
public string GetPageTitle(int lcid)
{
- return "privacyIDEA OTP Adapter";
+ foreach (ADFSinterface adfsui in inter)
+ {
+ if ((int)adfsui.LICD == (int)lcid)
+ {
+ return adfsui.titel;
+ }
+ // fallback to EN-US if nothing is defined
+ else
+ {
+ return "privacyIDEA OTP Adapter";
+ }
+ }
+ // in case of failure
+ return "privacyIDEA OTP Adapter E";
}
}
diff --git a/privacyIDEAADFSProvider/config.cs b/privacyIDEAADFSProvider/config.cs
index eb5efea..8d70d00 100644
--- a/privacyIDEAADFSProvider/config.cs
+++ b/privacyIDEAADFSProvider/config.cs
@@ -142,7 +142,8 @@ public partial class ADFSinterface
private string errormessageField;
private string wellcomemessageField;
- private string lICDField;
+ private int lICDField;
+ private string titelField;
///
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
@@ -171,10 +172,23 @@ public string wellcomemessage
this.wellcomemessageField = value;
}
}
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string titel
+ {
+ get
+ {
+ return this.titelField;
+ }
+ set
+ {
+ this.titelField = value;
+ }
+ }
///
[System.Xml.Serialization.XmlAttributeAttribute()]
- public string LICD
+ public int LICD
{
get
{
diff --git a/privacyIDEAADFSProvider/config.xml b/privacyIDEAADFSProvider/config.xml
index 3a2d1b5..e1b4c37 100644
--- a/privacyIDEAADFSProvider/config.xml
+++ b/privacyIDEAADFSProvider/config.xml
@@ -16,16 +16,21 @@
+
+
+
Login failed! Please try again!
Please provide the one-time-password:
+ privacyIDEA OTP Adapter - EN
Login fehlgeschlagen. Bitte versuchen Sie es erneut!
Bitte geben Sie ihren PIN und OTP Token ein:
+ privacyIDEA OTP Adapter - DE