Open Closed

How an i change the issuer and api url by user #2981


User avatar
0
learnabp created

Hi i am building an mobile app but i want the user to be able to specify the issuer and api to their instance of ABP ... what is the best way i can do this.

Currently the environment has these specified as const strings i want to be able to let the user enter their issuer and api url store it in json file or local storage and dynamicly change it when calls are made to ABP.


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You may need to change some components of ASP NET Core, such as the following article

    https://www.strathweb.com/2019/08/dynamic-controller-routing-in-asp-net-core-3-0/

    These have nothing to do with the framework.

  • User Avatar
    0
    learnabp created

    Can you please refund this ticket, i have figured out how to change the Environment at run time using the import { EnvironmentService } from '@abp/ng.core'; in my custom anular app.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Refunded

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19