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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

53 Answer(s)
  • User Avatar
    0
    Nathan created

    Hi, I don't know what is different between openiddictapplication and the others. Because I already done to add more custom field on saastenant but I am not able to add more field and display it on UI on admin to process it. And I see in the saastenant we have saastenantCreateDTO and saastenantUpdateDTO but openIddictApplication doesn't have it. Please let me know how can I implement it for openIdidictApplication. Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    you can check this https://abp.io/support/questions/8278/SSO-login-like-external-provider#answer-3a1655f8-011b-019e-4e65-5984107ee69b

    Hi, this is my image which I attached to ask you before. Could you provide me the sample code which match with my required? Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    I already provided some example code here, I think you can understand the logic and apply it to your project.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I don't know what is different between openiddictapplication and the others. Because I already done to add more custom field on saastenant but I am not able to add more field and display it on UI on admin to process it. And I see in the saastenant we have saastenantCreateDTO and saastenantUpdateDTO but openIddictApplication doesn't have it. Please let me know how can I implement it for openIdidictApplication.

    you should add custom fields on openIdidictApplication

     ObjectExtensionManager.Instance.Modules()
        .ConfigureOpenIddict(openid =>
        {
            openid.ConfigureApplication(...)
        }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    ConfigureApplication

    I already added it on. but it doesn't show on UI. Do I need any config?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi,

    I already provided some example code here, I think you can understand the logic and apply it to your project.

    yes, let me try and back to you soon. Thank you

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, Could you help me on openiddictapplications one while I check the SSO login?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi,

    I already provided some example code here, I think you can understand the logic and apply it to your project.

    I tried like your suggestion and get this err:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    The Authority must be reachable

    And I can custom application without any problem

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, about the authority, I want to bind it when I call service to get data from database then binding it.

    about the openiddictapplication I add tenantId as uuid => let me try again then let u know soon. Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, I don't know why I cannot show the custom field on openiddictapplication. I already followed the guide and I still not able to display the custom field on UI. For the other like tenant, I am able to do it. For more information: I am using abp version 8.3.2 and using multiple tenant with tenant resolver.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    about the authority, I want to bind it when I call service to get data from database then binding it.

    First, the Options'authority URL must be reachable, don't use placeholder. Then you can change it in the event.

    I don't know why I cannot show the custom field on openiddictapplication. I already followed the guide and I still not able to display the custom field on UI.

    Could you share a test project with me? i will check it. shiwei.liang@volosoft.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, as you can see in the image. for the Saas I am able to add new field EmailDomain on database and show on UI. but when I do the right thing like Saas approach but I dont get result like that. I cannot show on UI

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Could you reproduce it in a new project and share it with me? i will check it. thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, I will send you the project now. Please help to check it and response it to me asap. Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi liangshiwei, I already sent the project for you. Could you take a look and get back to me asap? Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    could you use https://wetransfer.com/

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    yes, I will add it on later.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, Could you help me to resolve the issue that I cannot display data for extraproperty which I consider as select options component? Here is my code:(FYI: I am using .net core vs angular)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I can't reproduce the problem

    • abp new Testapp -u angular
    ObjectExtensionManager.Instance.Modules()
      .ConfigureSaas(saas =>
      {
          saas.ConfigureTenant(tenant =>
          {
              tenant.AddOrUpdateProperty<Guid>( //property type: string
                  "OpenIddictApplicationId", //property name
                  property =>
                  {
                      property.UI.Lookup.Url = "/api/openiddict/applications";
                      property.UI.Lookup.DisplayPropertyName = "displayName";
                      property.UI.Lookup.ValuePropertyName = "id";
                  }
              );
          });
      });
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi could you help to send your zip sample code via my email? Here is my email: coolboy30111992@gmail.com I don't know what I am missing. And could you help to capture your network tab and see the api: /api/openiddict/applications called or not. And Further information: I am using commercial abp package Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    HI,

    You can try my steps

    https://abp.io/support/questions/8278/SSO-login-like-external-provider?CurrentPage=2#answer-3a1668fe-ab22-9f7d-60d1-bece74fb536a

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, I already followed your step above to create a new project then test it. but I still can not show the data for openIddictApplication:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Nathan created

    Hi, I recognized that I have to type on input field then the data will display. Do you know why is it? how to display as a dropdown instead of auto completion

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    It's an autocomplete input, try type something.

    Do you know why is it? how to display as a dropdown instead of auto completion

    Unfortunately, there is no way yet

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.