Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "giamdoc"

Thank you.

I have found the solution. However I am having problem getting Database Data from Startup class. Is there a way to access DbConext at MVC's startup?

Ex: if (bool.Parse(_appConfiguration["IdentityServer:IsEnabled"])) {

            //Get ClientID from Database
            
            var context = services.BuildServiceProvider().GetService<MyDbContext>();
            var clientIds = GetClientIds(context);
            
            //What do I need to write to be able to access the database here?
            
            IdentityServerRegistrar.Register(services, _appConfiguration, options => options.UserInteraction =
                new UserInteractionOptions
                {
                    LoginUrl = "/Account/Login",
                    LogoutUrl = "/Account/LogOut",
                    ErrorUrl = "/Error"
                }, clientIds);
        }

Thank you for the feedback.

If I use the method you sent, will the information stored in the database be cached? Or it will access to the Database every time there is a request. Is there any solution for me to use the database and AddMemory at the same time?

  • Product version: 10.1.0
  • Product type: MVC
  • Product framework type: .net core

Hi team.

I'm trying to configure Identity server clients into my database. I don't want to configure it in the file "appsetting.json" So in abp how should I handle it? Please show me how to do it on abp zero For example: "Clients": [ { "ClientId": "client", "AllowedGrantTypes": [ "password" ], "ClientSecrets": [ { "Value": "def2edf7-5d42-4edc-a84a-30136c340e13" } ], "AllowedScopes": [ "default-api" ] } ] I want to include this entry in the database. Or can you guide me how to do it like the link below https://identityserver4.readthedocs.io/en/latest/quickstarts/5_entityframework.html

Thank you!

Prerequisites

  • product version : 10.1.0
  • product type: MVC
  • product framework type: Net core

<br> After the user login to the system. Can I get the user's access token information?. Please show me how to get it.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? => 10.2
  • What is your product type (Angular or MVC)? => MVC
  • What is product framework type (.net framework or .net core)? => .net core

If issue related with ABP Framework

  • What is ABP Framework version? => lastest

I am wanting to use mysql database for my project. I installed Install-Package Pomelo.EntityFrameworkCore.MySql -Version 5.0.0-alpha.1 library

After I run the migration I get the following error message: MySqlConnector.MySqlException (0x80004005): Table 'test.AbpEditions' doesn't exist ---> MySqlConnector.MySqlException (0x80004005): Table 'test.AbpEditions' doesn't exist at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync (IOBehavior ioBehavior) in //src/MySqlConnector/Core/ResultSet.cs:line 49 at MySqlConnector.MySqlDataReader.ActivateResultSet () in //src/MySqlConnector/MySqlDataReader.cs:line 124

![Capture.PNG](/QA/files/649b793bdbb59c08353639fb6ca3fa15.PNG)

Please support me. Thank you

If issue is about UI

  • Which theme are you using?
  • What are the theme settings?
Showing 1 to 5 of 5 entries