That tutorial says to configure Identity Server like this:
public void ConfigureServices(IServiceCollection services)
{
var builder = services.AddIdentityServer()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApis())
.AddInMemoryClients(Config.GetClients());
}
Where to do this in the ABP code?
I find it troubling that the Nuget Package Manager cannot be used to manage upgrades for the Volo.Abp nuget packages.
As you recommended, I manually edited the package version numbers in the CSPROJ files, and as a result I do seem to have accomplished the upgrade.
However, there are many packages that now show as "Not available in this source" in Nuget Package Manager.
Can you please explain why this is the case? ABP is a commercial product and I don't believe I should need to manually edit my CSPROJ files to perform upgrades to the product. I believe I should be able to use the Nuget Package Manager.
I used the Manage Nuget Packages update feature and it does seem to have successfully upgraded many of the packages.
However, there are many packages that seem to still have max version 2.9.0
Is this the problem? Which of the packages have 3.0.2 versions and which do not? If some do not have 3.0.2 versions, are the 2.9.0 versions suppsed to keep working alongside the new 3.0.2 versions?
I've added a REST endpoint via a Service in the Application subproject.
I can see the endpoint in Swagger, and I can call it successfully.
But now I want to be able to call this endpoint from some REST client on the internet which will not be a logged-in user.
What is your convention for securing RESTful endpoints so they can be called by external clients?
About a week ago, I created a new ABP Commercial project and it has been running fine.
A few days ago, I received an email "ABP Framework & ABP Commercial v3.0 has been released!"
So I went into Manage NuGet Packages for Solution, and I updated all available Volo.Abp packages from 2.9.0 to the latest 3.0.2
Then when I run the project, I get an immediate unhandled runtime exception (see below).
An unhandled exception occurred while processing the request.
MissingMethodException: Method not found: 'Volo.Abp.EventBus.Distributed.EtoMappingDictionary Volo.Abp.EventBus.Distributed.AbpDistributedEventBusOptions.get_EtoMappings()'. Volo.Saas.SaasDomainModule+FiR5n2T2s45yZyQLKu.wBq6dA6Lag(AbpDistributedEventBusOptions options) DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Volo.Abp.EventBus.Local.ILocalEventBus, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory, Microsoft.Extensions.Options.IOptions
Can you please provide documentation or an example of how to inject and utilize the application layer into the HttpApi?
I see from the sample applications how to add a controller method to the HttpApi project (TestController)
How do you use dependency injection to get access to the DbContext?
Actually, I have 2 DbContexts I want to inject into my HttpApi controller, so I can perform database read/writes.