diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/Common/TestConstants.cs b/DuendeIdentityServer/SLO/SamlOidcSLO/Common/TestConstants.cs index abdcfac..fbfa96e 100644 --- a/DuendeIdentityServer/SLO/SamlOidcSLO/Common/TestConstants.cs +++ b/DuendeIdentityServer/SLO/SamlOidcSLO/Common/TestConstants.cs @@ -2,6 +2,7 @@ public static class TestConstants { - public static string LicenseKey = "eyJTb2xkRm9yIjowLjAsIktleVByZXNldCI6NiwiU2F2ZUtleSI6ZmFsc2UsIkxlZ2FjeUtleSI6ZmFsc2UsIlJlbmV3YWxTZW50VGltZSI6IjAwMDEtMDEtMDFUMDA6MDA6MDAiLCJhdXRoIjoiREVNTyIsImV4cCI6IjIwMjMtMDUtMTlUMDE6MDA6MDAuNzA3NTI2NiswMDowMCIsImlhdCI6IjIwMjMtMDQtMTlUMDE6MDA6MDAiLCJvcmciOiJERU1PIiwiYXVkIjoyfQ==.TOLSabk8Uf3jNF908d6r3jj9NzRPNExgZ1qqZMyBWkJ0Fpi+RESseOs7Dj8xtSdxt9SoCn4VnomVZnWA4alV3gDnAKIIatMgT8YzCr5Y/IrgEmJmRTb7jNDd5azBrgjCDNmjI8clx5UzGwLfuL1+K72KjsAq1R6DvAZdFiJ0Ggtw4sCocGfhjKrPbDo6izyc3A6EOtgOL0TDLuqxsPm0vPkHB/NRxUsVAGaiLwhu65Wz9iLMGx9BJIIpTr5frGAfrpmv4brjCe92jZcBuCMWgQPVxJKbGzZqNhK8m1uqiLvSdvdoymsvccLaKeVa8APeaq0KROJu9KqPKNg0R/anSYfwBz88L9CgqszLNYRynK4pcSm52POd3g4ulhtZ5vcvRDDI3W3rgw6LO4Et8iQ6SXU/JEhSIjbmqAbKCnQErUDYT8/k2qpIy5W9Sy14F4OkueW1i19R6UcLQVcRztbGUFz7rGRUwbStWS+Eb1sFjDjFzoEGxQhgy/GW/MNUGFF39KVUfZaYTWuz9MvgsXc7exrmT/zKsTjC6GB0wSFcRK5I34T7aIymC95rPHwAqFzfOr2FNt6DvJXogS7VWS+tJkVAHxVYB/stXT3+eBLU9Qa3Su2nZ36YdrYAMIBJmFwiQMq52QAi2/1/2a2e0nrKFTQJh3tdnQGtG2ZjXRtvdWo="; - public static string Licensee = "DEMO"; + // Get a demo key from https://www.identityserver.com/products/saml2p + public const string LicenseKey = "eyJTb2xkRm9yIjowLjAsIktleVByZXNldCI6NiwiU2F2ZUtleSI6ZmFsc2UsIkxlZ2FjeUtleSI6ZmFsc2UsIlJlbmV3YWxTZW50VGltZSI6IjAwMDEtMDEtMDFUMDA6MDA6MDAiLCJhdXRoIjoiREVNTyIsImV4cCI6IjIwMjMtMDktMDZUMDE6MDA6MDAuNDcwNDY4MSswMDowMCIsImlhdCI6IjIwMjMtMDgtMDdUMDE6MDA6MDAiLCJvcmciOiJERU1PIiwiYXVkIjoyfQ==.m6Kn/+dk3BQKgaPm3prRmybkwAJBxNwpNIHkulTh32T+vxwAjs7elNusRHdrAZbc6CLKWfTgCcsFMoHolEJZQRmGu00atGxjKWoBjVEU1wIxCNHQuiSiiLBskcvNwTkHdyt+CWUWi6tpvYZNH20YslRgEvUNpy/hkhL8+T/3pAKJpV8fROAA1eZFbqBbpwm33pD99PWFQ5cJQlgR+ecMPq/mmPraN99EXxeM+ViGdlhyogK/hYQKNBZ05WSjM42pka6OHMxnFnJxaAKHcl9sIn2+Rppa7/kZ4y9wVocVr/iG2Sp/aedoscjiqbWpO0c6EkyWiIVX/Y5UXtZFa09+Eosfj1nEU4FDwmTa08x0tWUEolCqcKweYnhBYN6fFaiHxxxA6p1rpwA8b8oJd2Um4LPiMxQS99XCdf3eCPPtiITRfapimRr7j+HLYzh7gED0FGE57r5s0ZHjd0XTQRdI5ttVC9KD7IZihCV1KivnqPR8Fzrg7G8LuXj5mnlNzDnRKLVvuAuIc6aMgObncJsOnCHgWAJue3Dcpdd1MXB8ikjLocMs+H09rpblF9todNDSLdD088wz3kc/QR8lYyZhJhBueMtqxHBH/QHsV0lES+aw7c6BDW7SK9eCDIuALHhdi8k1GlY0L8yWgNBBWHRdIlwIcUW76PMArjaYG2ISjFE="; + public const string Licensee = "DEMO"; } \ No newline at end of file diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/Common/testclient.pfx b/DuendeIdentityServer/SLO/SamlOidcSLO/Common/testclient.pfx new file mode 100644 index 0000000..1a3e8b8 Binary files /dev/null and b/DuendeIdentityServer/SLO/SamlOidcSLO/Common/testclient.pfx differ diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/IdentityServer/Program.cs b/DuendeIdentityServer/SLO/SamlOidcSLO/IdentityServer/Program.cs index 3872a4d..053f132 100644 --- a/DuendeIdentityServer/SLO/SamlOidcSLO/IdentityServer/Program.cs +++ b/DuendeIdentityServer/SLO/SamlOidcSLO/IdentityServer/Program.cs @@ -26,7 +26,7 @@ .ConfigureServices() .ConfigurePipeline(); - app.Run(); + app.Run("https://localhost:5001"); } catch (Exception ex) { diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.OIDC/Program.cs b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.OIDC/Program.cs index e5d1339..b597aa0 100644 --- a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.OIDC/Program.cs +++ b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.OIDC/Program.cs @@ -57,4 +57,4 @@ app.MapRazorPages().RequireAuthorization(); -app.Run(); +app.Run("https://localhost:5002"); diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.1/Program.cs b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.1/Program.cs index b05508f..1d3f7f6 100644 --- a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.1/Program.cs +++ b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.1/Program.cs @@ -1,7 +1,6 @@ using System.IdentityModel.Tokens.Jwt; using System.Security.Cryptography.X509Certificates; using Common; -using Microsoft.AspNetCore.Authentication; using Rsk.AspNetCore.Authentication.Saml2p; var builder = WebApplication.CreateBuilder(args); @@ -31,7 +30,7 @@ options.ServiceProviderOptions = new SpOptions() { EntityId = "https://localhost:5003", - SigningCertificate = new X509Certificate2("testclient.pfx", "test"), + SigningCertificate = new X509Certificate2("../common/testclient.pfx", "test"), MetadataPath = new PathString("/saml/metadata") }; @@ -63,4 +62,4 @@ app.MapRazorPages().RequireAuthorization(); -app.Run(); +app.Run("https://localhost:5003"); diff --git a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.2/Program.cs b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.2/Program.cs index fc3a700..64b8831 100644 --- a/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.2/Program.cs +++ b/DuendeIdentityServer/SLO/SamlOidcSLO/WebClient.SAML.2/Program.cs @@ -31,7 +31,7 @@ options.ServiceProviderOptions = new SpOptions() { EntityId = "https://localhost:5004", - SigningCertificate = new X509Certificate2("testclient.pfx", "test"), + SigningCertificate = new X509Certificate2("../common/testclient.pfx", "test"), MetadataPath = new PathString("/saml/metadata") }; @@ -63,4 +63,4 @@ app.MapRazorPages().RequireAuthorization(); -app.Run(); +app.Run("https://localhost:5004");