ok, I will check it asap.
Thanks.
hi
I have reproduced the problem. Checking..
hi
Please share these two minimal projects.
Thanks
liming.ma@volosoft.com
Thanks. I will check it. you can share file via https://wetransfer.com/ next time. : )
hi
After the successful login verification using openid , the application is not allowing the user to enter into the site instead it is circling back to the login page again. Not sure what i am missing.
What do you mean? Can you share a GIF to show that?
But we would like to store the user information after the user credentials is verified.
There is an OnUserInformationReceived
event of OpenIdConnect
, You can get user info and store it in this method.
.AddOpenIdConnect("AzureOpenId", "Azure AD OpenId", options =>
{
options.Authority = "https://login.microsoftonline.com/" + configuration["AzureAd:TenantId"] + "/v2.0/";
options.ClientId = configuration["AzureAd:ClientId"];
options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
options.CallbackPath = configuration["AzureAd:CallbackPath"];
options.ClientSecret = configuration["AzureAd:ClientSecret"];
options.RequireHttpsMetadata = false;
options.SaveTokens = true;
options.GetClaimsFromUserInfoEndpoint = true;
options.Scope.Add("email");
options.ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
options.Events = new OpenIdConnectEvents()
{
OnUserInformationReceived = c =>
{
}
};
});
hi
click "Save" button, but no two databases(table spaces) specified in Database connection strings are created.
The tenant dropdown menu has Apply database migrations
options.
You can click and check the logs to see what's happened.
Can the ABP Framework support creating oracle database(table spaces) if they don't exists?
Yes, ABP will use EF Core service to create a new database. see https://abp.io/docs/latest/framework/data/entity-framework-core/migrations
How do I do if I want to migrate(Clone) data in a Job table into a tenant job table during the above Tenant data migration process?
You can add a new event handle to migrate the data. There is an event when a tenant is created. IDistributedEventHandler<TenantCreatedEto>
Please check your solution there should be have a event handler:
public class MyProjectNameTenantDatabaseMigrationHandler :
IDistributedEventHandler<TenantCreatedEto>,
IDistributedEventHandler<TenantConnectionStringUpdatedEto>,
IDistributedEventHandler<ApplyDatabaseMigrationsEto>,
ITransientDependency
{
}
What is the Best Practice for Mult-Tenancy Schema & Data Migration in Oracle ?
see https://abp.io/docs/latest/framework/data/entity-framework-core/migrations
hi
You can start a new unit of work in your job class to prevent this exception.
Please share the code of your job class.
Thanks.
An attempt was made to use the context instance while it is being configured. A DbContext instance cannot be used inside 'OnConfiguring' since it is still being configured at this point. This can happen if a second operation is started on this context instance before a previous operation completed. Any instance members are not guaranteed to be thread safe.
https://abp.io/docs/latest/framework/architecture/domain-driven-design/unit-of-work#begin-a-new-unit-of-work
hi
Does your project have a public website?
Please share a screenshot of your project structure.
Your project currently requires the Redis
.
Thanks.
hi
How do you recommend to implement this?
There is no limit on this; you can do this. It's just not common.
Do ABP has some base classes for it? > Should I extend ApplicationService base class in each service?
We have ApplicationService
but you can use your own base class. you can refer the source code of ApplicationService
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ApplicationService.cs
How can I call each one in the controller?
As usual, inject the service interface and call the method.