Hello, hope you are doing well, any updates?
Hi, sorry for the late response. Our QA team tested your situation but unfortunately they could not reproduce the problem. They created an angular application with the separate auth server option in the relevant version. Did you override any service of the GDPR module or make any customizations that may affect the normal behaviour?
Or by any chance, can you share your solution via email to support@abp.io (with the ticket number), so I can better assist you?
Regards.
Our project is structured in a tiered architecture, and the Blazor project redirects directly to the auth server upon startup. The user cannot access the Blazor screen without logging in.
Therefore, it redirects directly to the SSO site where we have deployed the auth server.
I have added the following configuration to the appsettings of both the auth server and the Blazor projects, but unfortunately, I am still encountering the same error.
"CorsOrigins": "https://.medicanamerkez.com,http://.sharepoint.com,https://*.sharepoint.com",
Hi, can you check in your module class there is a method called ConfigureCors and the content of the method is as follow?
context.Services.AddCors(options =>
{
options.AddDefaultPolicy(builder =>
{
builder
.WithOrigins(
configuration["App:CorsOrigins"]?
.Split(",", StringSplitOptions.RemoveEmptyEntries)
.Select(o => o.Trim().RemovePostFix("/"))
.ToArray() ?? Array.Empty<string>()
)
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
Also, ensure you added the CorsOrigin under the App section in the appsettings.json file.
Ok. How to solve the problem of failed login from External provider now? The Client secrets obtained by my provider are encrypted.
Hi, since the client secret is encrypted then the provider is also expecting it from you with the encrypted value, so you can just set the clientSecret according to the provided value:
context.Services.AddAuthentication()
.AddMicrosoftAccount(MicrosoftAccountDefaults.AuthenticationScheme, options =>
{
//other configs...
options.ClientSecret = "<set-your-client-secret>"; //get it from appsettings.json or secret manager
})
Hello, I saw here https://abp.io/support/questions/7797/NullInjectorError-No-provider-for-InjectionToken-OPENAUTHORITYDELEGATIONMODAL that it would it be better to create a library based on the abp module.
Could you provide a guide on how to do it?Thank you
Hi, in the related question, Masum suggests to change the only relevant part that you need to customize instead of installing the source code. When you follow his approach, then you only need to update the related customizated components and align the changes on them. It might be an easier approach if you are not changing too many components. (See the related suggestion: https://abp.io/support/questions/7797/NullInjectorError-No-provider-for-InjectionToken-OPENAUTHORITYDELEGATIONMODAL#answer-3a14d843-fd08-8a5c-9b01-50f6539bc522)
But in fact, there is no change between this approach and my own suggestion fundamentally. This means you need to manually synch the related components/services.
Best regards.
If your address entity has a navigation property and the change made in the related property, this might be the reason for that.
Yes, We are already enabled and all the audits are getting in to the tables but how we will know that belongs to which entity? In which table that entity relationship will found.
In the audit logging page, you can switch to the Entity Change tab and see the details.
Ok thank you waiting for your feedback.
Our QA team will test it today and I will write you back asap. Thanks for understanding.
Hi, you need to enable entity history and then it will save entity changes for the relevant entities and the EntityId column will be filled with the changed entities Id.
Please refer to the documentation: https://abp.io/docs/latest/framework/infrastructure/audit-logging#entity-history-selectors
If your Blazor Server app is hosted on a different domain than the embedding page (HTML/Azure Power Apps), the browser might block the request due to CORS (Cross-Origin Resource Sharing) restrictions.
So, you need to modify the cors configuration (and define the related CorsOrigin) - update your appsettings.json file -:
{
"App": {
"CorsOrigins": "https://*.MyProjectName.com"
}
}
Check https://abp.io/docs/9.0/solution-templates/layered-web-application/cors-configuration for more info.