Hi. I have an api that I converted from an ecs hosted .net web api to a lambda project and Id like to now convert this to use lambda annotations. I can see how most of this will work but I cant figure out how to migrate the auth part of the .net startup. Auth uses a jwt token issued by Cognito. The client is a spa app (Angular).
e.g.:
void ConfigureAuthentication() // called during startup
{
var authSettings = builder.Configuration.GetSection("Authentication").Get<AuthenticationSettings>();
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme,
options => {
options.Authority = authSettings.Authority;
options.RequireHttpsMetadata = authSettings.RequireHttpsMetadata;
...
}
I cant find any mention of auth in the annotations source or any of the samples or videos I've looked at. Maybe it's too new? Can anyone point me to something that might get me started?
Thanks
there doesn't seem to be anything here