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?
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!
<br> After the user login to the system. Can I get the user's access token information?. Please show me how to get it.
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
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