Open Closed

Identity Server reference solution's API #3576


User avatar
0
Spospisil created
  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

I have a tiered MVC application for which I have overridden the ConfirmUser page in the Identity Server project of my solution. I would like to call an API action defined by my xxxx.HttpApi.Host project from the Identity Server project. How can I do this?

See github repo sample that shows what I'm trying to do. In particular take a look at the \Pages\Account\ConfigmUser.js file to see that I am trying to refer to the 'TestService' that is defined in the AbpSample.Application project.

https://github.com/spospisil/abpSample.git


9 Answer(s)
  • User Avatar
    0
    Spospisil created

    Any update?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Do not public your repository on Github.

    Identity Server should not call API.Host, please reconsider your design.

  • User Avatar
    0
    Spospisil created

    Hi,

    How would you suggest referring to services created in the the same tiered solution to the from Identity Server?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can add the API/app services in the identity server project.

  • User Avatar
    0
    Spospisil created

    Hi,

    Since support usually asks for a sample project demonstrating the issue, can you take the sample project I created and try making this work yourself? I have been unable to do so and keep getting various errors/issues. There really isn't any documentation or other examples on how to do this so I'm relying on you to show how this can be done. Please do not send me any links, etc of similar issues. I would like you to modify my sample project and explain what you have done to get it to work so I can apply the necessary items to my real project.

    To repeat, I am trying to call a one of my application services defined in my tiered solution from the Identity Server project via Javascript. This would be no different than calling one of the services in the Volo.Abp.Account.Pro.Public.Application* projects that is currently being done in the Confirm User Page of the Account.Pro.Public* module.

    I've spent 3 days on this issue and am no closer to resolving.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please add me to your repository,

    https://github.com/maliming

  • User Avatar
    0
    Spospisil created

    ? What's your email address?

  • User Avatar
    0
    Spospisil created

    Update please

  • User Avatar
    0
    Spospisil created

    Closing for lack of ABP support response.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09