Ends in:
7 DAYS
13 HRS
37 MIN
21 SEC
Ends in:
7 D
13 H
37 M
21 S
Open Closed

Identity Server Integration #90


User avatar
0
vishalnikam created

How to Integrate with external identity service such Azure AD or Identity Server 4 in the default ABP template Angular\Core. I could see the oAuthConfig configuration(environment.ts) in the Angular Application but not in Application service side. Please guide on the same.


11 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    See this doc => https://docs.abp.io/en/abp/latest/How-To/Azure-Active-Directory-Authentication-MVC it's MVC based but I guess it'll guide you.

  • User Avatar
    0
    vishalnikam created

    Hi there, then what is the use of create new client and manage client on Identity Server page. Or is it only useful for default identity managment. Kindly let me know.

  • User Avatar
    0
    alper created
    Support Team Director

    this is the user interface for defining new client. you can use this

  • User Avatar
    0
    vishalnikam created

    Hi.. Please provide some documention link or reference to setup new client through UI. will this new client replace default implemenation for Angular\Core Template ?

  • User Avatar
    0
    hikalkan created
    Support Team Co-Founder

    Hi,

    This UI is used to manage clients. You can create new clients of edit existing ones.

    YourProjectName_Web is a pre-defined client used by the Angular UI. Be careful on editing it, since your application may not properly work if you remove some necessary resources from this client.

    You can define new clients here. When you define a new client, then you (or anyone you've shared it) can connect to your application with this new client.

    If you are not sure what a client is, please refer to the IdentityServer documentation: https://identityserver4.readthedocs.io/en/latest/ If you are new to IDS, the big picture and the termonilogy documents are good points to start with.

    Unfortunately, IDS and OAuth are complex, and you need to understand it to customize. ABP Commercial makes it easy by providing UI and pre-defined configuration for you.

    BTW, if you want to remove the IdentityServer module from your system and use another Identity Server (like Azure AD), it is another topic. We use standard Identity and IdentityServer libraries, so you can find documents on the web. Since they are not our products, we don't provide advanced support for them as a part of the standard ABP Commercial support.

    If you have a specific question, however, we will try to help you.

    Thanks.

  • User Avatar
    0
    vishalnikam created

    Yes, I wanted to remove default IdentityServer from Angular\Core template. I can remove it from the App service side but let me know how to remove it from angular.

  • User Avatar
    0
    Mehmet created

    Hi @vishalnikam,

    You can remove a module from the Angular template by applied the 3 steps:

    1- Remove the route of the module from app-routing.module.ts. ( you should remove the route object that the path property is identity-server) 2- Remove the <Module>ConfigModule from  app.module.ts imports. (you should remove IdentityServerConfigModule). 3- Remove the package from package.json. ( you should remove @volo/abp.ng.identity-server and @volo/abp.ng.identity-server.config packages from package.json)

  • User Avatar
    0
    vishalnikam created

    How does existing ABP identity module (Identity Server 4) support multitenant environment or do we need to add new client or configuration per Tenant ? Provide more details

  • User Avatar
    0
    alper created
    Support Team Director

    you can use OpenID Connect

  • User Avatar
    0
    vishalnikam created

    I am not following you. please elaborate more on this. how to go with this in multitenant enviorment when we have seperate database for tenant. I assume user crediential and roles will be managed in that database. do I need to implement anything or does it supported by default.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    @vishalnikam hello,

    Can you elaborate your problem please? As I've read, you wanted to integrate your Angular app to Azure AD or Identity Server 4 but then you want to remove IdentityServer from angular template.

    Do you have an external identityserver other then abp application provides that you want to connect your Angular app to?

    If you want to integrate your angular app to AzureAD, you can define a new client for your angular app in the identityserver with implicit flow and alter the authentication of angular app. This link may help: https://damienbod.com/2016/03/02/angular2-openid-connect-implicit-flow-with-identityserver4/

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