From f8442ff1b57a9589a3eac4750bfc6bf4c6cdbdf8 Mon Sep 17 00:00:00 2001 From: Jeremy Likness Date: Fri, 4 Aug 2023 14:08:00 -0700 Subject: [PATCH] Preview 7 (#7) Co-authored-by: Jeremy Likness (from Dev Box) --- IdentityEndpointsSample/Program.cs | 2 +- IdentityEndpointsSample/app.http | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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}}" } ###