Questions tagged [sustainsys-saml2]

Sustainsys.Saml2 is a .NET library for SAML2 protocol support, adding SAML2 Service Provider functionality to ASP.NET applications. The library was previously named Kentor.AuthServices

The Sustainsys.Saml2 library (formerly named Kentor.AuthServices) is an open source library that adds SAML2 service provider functionality to .NET for various ASP.NET programming models (Http Module, Mvc, Owin, ASP.NET Core)

The project source and documentation is available in the GitHub repo.

An instance of the Stub Idp of the package (an Idp that can be used for testing) is available at https://stubidp.sustainsys.com.

197 questions
3
votes
2 answers

The signature verified correctly with the key contained in the signature, but that key is not trusted

I am trying to configure SAML2 IdP Salesforce as external provider in IdentityServer3. I am using SustainSys/Saml2 library. So for testing purpose I have downloaded SampleIdentityServer3. and configured SAML2 IdP like below private void…
LP13
  • 30,567
  • 53
  • 217
  • 400
3
votes
1 answer

how can i include System.Identity Model 4.0 in ASP.NetCore 2.1 mvc application

What is the best approach to achieve saml2.0 in ASP.NetCore2.1 MVC application? i am using Sustainsys.AspNetCore2.1Saml2 nuget, below is code. but the EntityId in it requires System.IdentityModel.dll 4.0 sounds like i am not able to run the…
2
votes
0 answers

Sustainsys.Saml2.HttpModule Service Provider initiated sample code

Is there sample c# code (not web.config) to do a Service Provide initiated call and also receiving the response from the Identity provider for HttpModule? I have a web forms application. The code below has mixed MVC stuff (which doesn't work).…
2
votes
0 answers

How to redirect to Microsoft Login page from Asp.Net Core using Azure SAML2 Auth

I am using Azure SAML2 SSO Auth in .Net core application. My problem is that the application is not redirecting to the Microsoft login page for Authentication. Startup.cs services.AddControllersWithViews(); …
2
votes
1 answer

How to use Azure AD Saml2 authentication for SSO in .NET Core 3.1

I am using Sustainsys.Saml2 for Azure AD Saml2 authentication in .NET Core 3.1.I can able to authenticate, but after the login page is redirected to this address https://localhost:44378/Saml2/Acs.system automatically adding "/Saml2/Acs".I could not…
2
votes
1 answer

Dynamically load SAML2 IDP using Sustainsys-Saml2 and ASP.net Core

What is the best way to dynamically load SAML2 IDP after ASP.net core web application has started? So far I am able to dynamically add SAML2 IDP during runtime using following code: //DI in Constructor public ClassName(IAuthenticationSchemeProvider…
Munir
  • 23
  • 2
2
votes
1 answer

Compile error "call is ambiguous" using SustainSys Saml2 extension method ToHttpRequestData

When using the Request.ToHttpRequestData() method that SustainsSys defines as an extension method on HttpRequestBase, I get the following compilation error: error CS0121: The call is ambiguous between the following methods or properties:…
Elroy Flynn
  • 3,032
  • 1
  • 24
  • 33
2
votes
0 answers

Adding IDPs after startup

I am currently running multiple instances of IdentityServer4 on dotnetcore 2.1 (migrating to 3.0 soon) and have a list of SAML IDPs stored in the database. I am able to initialize them at startup using the following code as an extension on the…
2
votes
2 answers

How to setup NLog with Sustainsys.Saml2

I have an ASP.Net Web Forms app where I just integrated Sustainsys.Saml2 library. I've never used any sort of logging mechanism and I'm trying to figure out how to add or create an ILoggerAdapter for the library stated on their troubleshooting…
RoLYroLLs
  • 3,113
  • 4
  • 38
  • 57
2
votes
1 answer

SustainSys-SAML2: claim transformation after sign-in

Our team has successfully integrated Sustainsys.Saml2; great library, thank you! We have a use-case where after a user signs-in and submits a form, a claim is added via an API call to the IdP; however, there is a minute delay before it is available.…
Bodhi Byte
  • 21
  • 1
2
votes
4 answers

Not able to SignOut using Saml2 from Sustainsys

This should be redirecting my app to my AdFs signOut Page, and then redirect me back to my app. However, it simply redirects me to my route "/logout". Watching the log on my ADFS server nothing happens. [AllowAnonymous] [HttpGet] …
Arturio
  • 418
  • 1
  • 7
  • 25
2
votes
1 answer

How to upgrade Sustainsys.Saml2 from version 0.23.0 to version 2.0.0

I want to upgrade Sustainsys.Saml2 Nuget package from version 0.23.0 to version 2.0.0. I have an error in next line of code: spOptions.SystemIdentityModelIdentityConfiguration.AudienceRestriction.AudienceMode = AudienceUriMode.Never;. The SPOptions…
O. V.
  • 125
  • 1
  • 8
2
votes
1 answer

GetExternalLoginInfoAsync always returns null when using Okta for authentication

I'm currently trying to get Okta to work with our MVC based application. Unfortunatly I am not the original designer or author of original code. However after some digging I have found that my predecessors work was based on the sustainsys example…
M.Spruce
  • 21
  • 4
2
votes
1 answer

Adding Multiple Tenancys

What is the preferd way of adding multi clients into the config. We have a few customers we want to get on using ADFS, so they have different endpoints/metadata. At the moment i've tried to read the configs from a db at startup, and then for each…
beakersoft
  • 2,316
  • 6
  • 30
  • 40
2
votes
1 answer

How to get SAML Response and SAML Token in Controller Action method

I am using this code in CALLback url using SUstainsys.SAaml2 library: public ActionResult Callback() { var samlToken = (Saml2SecurityToken)null; var samlResponses = HttpContext.Request.Form["SAMLResponse"]; …
1
2
3
13 14