Open Closed

Multiple clients share same authentication server #4601


User avatar
0
selwade created

Is there any document that clarifies how to add multiple ABP applications using the same authentication server? And is there an updated document on how to add the identity server module to the solution, in this document it says: "Identity Server is pre-installed in the startup templates. So, no need to manually install it.", and this is not correct.

The below image describes what I want to achieve.

  • ABP application installed on a server (let us call it A).
  • ABP application will be installed on other servers, will act as a client with his own UI, and will push data to server A using the authentication server installed on server A.

If there is any document that would help, I would be very grateful.


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

    Hi,

    May I ask, what ABP version are you using?

  • User Avatar
    0
    selwade created

    Hi liangshiwei,

    It is V6.0 and I am flexible to upgrade to V7.0.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Is there any document that clarifies how to add multiple ABP applications using the same authentication server?

    No such document, but you can check: https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice

    And is there an updated document on how to add the identity server module to the solution, in this document it says: "Identity Server is pre-installed in the startup templates. So, no need to manually install it.", and this is not correct.

    Yes, but since 6.0, the template uses openIddict instead of IdentityServer.

    The documentation for microservice template, but some content is useful:

    • https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#authserver-configuration

    You can create a new project with --separate-auth-server option. (client app)

    • You can safely delete the AuthServer project
    • Update the AuthServer configuration in the appsettings.json file of HttpApi.Host project
    • Update oAuthConfig configuration in the environment.ts
    • Remove modules you don't need
  • User Avatar
    0
    selwade created

    Thank you for your response, Will give it a try then I will get back to you. Anyway I'm using the application template in both sides.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    ok

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