Open Closed

SSO-login-like-external-provider #8278


User avatar
0
Nathan created

I want to Add the “log in with SSO”, which is not the social login, but triggers the login with a companies own SSO configuration (Entra, ForgeRock, KeyCloak). it's mean the user will be configured in admin site in openIddict which store in openIddictApplication table. Do we have any way to show the button like external provider login method(microsoft, google, twitter)? and the handle flow like the image below. Please help to give any suggestions. Thanks


6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Do we have any way to show the button like external provider login method(microsoft, google, twitter)? and the handle flow like the image below. Please help to give any

    of course, you can, just like configuring an external provider

  • User Avatar
    0
    Nathan created

    Hi liangshiwei, Am I able to load the config from openIddictApplication table? Like the image

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    At this time, the application is in the initialization, so you can't inject the services.

    You can try to use ADO.NET to query the database at the time

  • User Avatar
    0
    Nathan created

    Hi, Yes, using ADO.Net is good approach to connect DB. And assume that, in the openIddictApplications table I have tenantId column. Do we have any way to catch the current tenant then filter in query on openIddictApplication table?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There is no current tenant during the application Initialize process. I think you need to use a configuration file like appsettings.json to define the current tenant.

  • User Avatar
    0
    Nathan created

    Hi, Do we have any way to do like my code here? I want to init the config for openiddict config first then I try to add event to load the config from database.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11