I would like to have authentication and authorization performed in a separate microservice. At the same time, my authorization microservice is not an identity provider, but rather a simple API.
How can I configure which endpoint in ASP.NET to use for authentication and what data to send to it before accessing the destination endpoint? I found the following method in the documentation:
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
// base-address of your identityserver
options.Authority = "https://demo.identityserver.io";
// name of the API resource
options.Audience = "api1";
});
Do I understand correctly that this is what I need, but it uses an identity server?
How can I accomplish this without using one?
Alseratia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.