New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCPWare Wise Turtle Pull Request #6

Closed
wants to merge 41 commits into
base: master
from
Commits
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Add the single logout IdP service url property to IdentityProvider an…

…d IdentityProviderSelector classes
  • Loading branch information...
ncarandini committed Oct 26, 2017
commit e50c9ff5accfbfb13123fee9bf7d6ff4a68a515b
@@ -10,12 +10,13 @@ public class IdentityProvider
public string ProviderName { get; private set; }
public string SpidServiceUrl { get; private set; }
public string SingleLogoutServiceUrl { get; private set; }
public Func<DateTime, string> Now;
public Func<DateTime, string> After;
public Func<DateTime, string> NotBefore;
public IdentityProvider(string providerName, string spidServiceUrl, Func<DateTime, string> now, Func<DateTime, string> after, Func<DateTime, string> notBefore)
public IdentityProvider(string providerName, string spidServiceUrl, string singleLogoutServiceUrl, Func<DateTime, string> now, Func<DateTime, string> after, Func<DateTime, string> notBefore)
{
ProviderName = providerName;
SpidServiceUrl = spidServiceUrl;
@@ -25,6 +25,7 @@ public static IdentityProvider GetIdpFromUserChoice(string idpLabel, bool forTes
idp = new IdentityProvider(
providerName: "Poste Italiane",
spidServiceUrl: forTesting ? "https://spidposte.test.poste.it/jod-fs/ssoservicepost" : "",
singleLogoutServiceUrl: forTesting ? "https://spidposte.test.poste.it/jod-fs/sloserviceresponsepost" : "",
now: (now) => { return now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
after: (after) => { return after.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
notBefore: (now) => { return now.AddMinutes(-2).ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); }
@@ -35,6 +36,7 @@ public static IdentityProvider GetIdpFromUserChoice(string idpLabel, bool forTes
idp = new IdentityProvider(
providerName: "Sielte",
spidServiceUrl: forTesting ? "" : "",
singleLogoutServiceUrl: forTesting ? "" : "",
now: (now) => { return now.AddMinutes(-2).ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"); },
after: (after) => { return after.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"); },
notBefore: (now) => { return now.AddMinutes(-2).ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"); }
@@ -45,6 +47,7 @@ public static IdentityProvider GetIdpFromUserChoice(string idpLabel, bool forTes
idp = new IdentityProvider(
providerName: "TIM",
spidServiceUrl: forTesting ? "" : "",
singleLogoutServiceUrl: forTesting ? "" : "",
now: (now) => { return now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
after: (after) => { return after.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
notBefore: (now) => { return now.AddMinutes(-2).ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); }
@@ -55,6 +58,7 @@ public static IdentityProvider GetIdpFromUserChoice(string idpLabel, bool forTes
idp = new IdentityProvider(
providerName: "Infocert",
spidServiceUrl: forTesting ? "" : "",
singleLogoutServiceUrl: forTesting ? "" : "",
now: (now) => { return now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
after: (after) => { return after.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); },
notBefore: (now) => { return now.AddMinutes(-2).ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'"); }
ProTip! Use n and p to navigate between commits in a pull request.