Open Closed

External Provider using SAML #8582


User avatar
0
oyvind@apx-systems.com created
  • ABP Framework version: v7.0.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello,

We are currently working on a task to do authentication with SAML2 to an IdP which is hosted by our customer.

I have searched the forums and documentation, but couldn't find much information on SAML. Is there support in ABP to use an External Provider via SAML?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    If you can use SAML authentication in asp net core web app. then you can use it in abp.

    Do you have document or code to use SAML in asp net core?

    And we have a ExternalLoginProvider system: https://github.com/abpframework/abp/issues/4977#issuecomment-670006297

  • User Avatar
    0
    oyvind@apx-systems.com created

    Hello,

    I have implemented this in asp net core as a custom RemoteAuthenticationHandler and added it to ABP. I get succesfully forwarded to the idP to authenticate and then get a post callback to the callbackpath in my ABP appllication. However, as part of the SAML flow, I need to decrypt the result using a certificate (data in the post callback). This certificate is available through the options when I forward to the Idp. But when the callback comes, I am without state (no selected tenant, I guess), so I cannot read the certificate to decrypt.

    Any suggestions on how to solve this? I can pass a state value that I will get back in the callback, but I am not sure how to use it to get the correct options.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your code? or a simple project?

    I need to check the code or reproduce the problem first.

    Thanks.

    liming.ma@volosoft.com

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 18, 2025, 10:42