diff --git a/IdentityEndpointsSample/Program.cs b/IdentityEndpointsSample/Program.cs index 8b8bbd8..e4280d1 100644 --- a/IdentityEndpointsSample/Program.cs +++ b/IdentityEndpointsSample/Program.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); -builder.Services.AddAuthentication().AddIdentityBearerToken(); +builder.Services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme); builder.Services.AddAuthorizationBuilder(); builder.Services.AddDbContext(options => options.UseInMemoryDatabase("AppDb")); diff --git a/IdentityEndpointsSample/app.http b/IdentityEndpointsSample/app.http index a87bf5f..eb55a95 100644 --- a/IdentityEndpointsSample/app.http +++ b/IdentityEndpointsSample/app.http @@ -3,13 +3,15 @@ @url=https://localhost:7044 @user=admin @password=P@$$w0rd1 +@email=admin@notadomain.com POST {{url}}/register Content-Type: application/json { "username": "{{user}}", - "password": "{{password}}" + "password": "{{password}}", + "email": "{{email}}" } ###