So it turns out the application template is using the **wrong **method call - it should be in ConfigureSwaggerServices. If peolple out there are using the code as is from the Blazor Server Template then they have zero security - wide open.
`` services.AddAbpSwaggerGenWithOAuth(
configuration["AuthServer:Authority"],
new Dictionary<string, string>
{
{"xxx", "xAPI"}
},
options =>
{
options.SwaggerDoc("v1", new OpenApiInfo { Title = "xAPI", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
}
);`
`
NOT
`` services.AddAbpSwaggerGen(
options =>
{
options.SwaggerDoc("v1", new OpenApiInfo { Title = "EL API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
options.CustomSchemaIds(type => type.FullName);
}
);``
I wish that was true, but i tested it a few times with fresh templated commercial projects and in a private window.
that's great - thanks for the fast response!
I read "Subscribing to the auto events is same as subscribing a regular distributed event" - so I'm guessing if there are no distributed events published for the File Management Module then as alternative i could somehow hook into the events at the EF level.
Just posting my thoughts but would still appreciate the experts opinion! :-)
Thank you once again!
I also Like to take issue with the number of "questions" I have left - 9 (should be 10). I have asked 5 question and raised 1 bug. I hope this can be rectified as i feel a little peeved at this false tally.
OK, thanks for the answer. may I suggest making the developer do a little less heavy lifting to merely hide a icon in the same way the Web UI does. Happy to close.