mirror of
https://github.com/fergalmoran/IdentityEndpointsSample.git
synced 2025-12-22 01:29:16 +00:00
Preview 7 (#7)
Co-authored-by: Jeremy Likness (from Dev Box) <jeliknes@microsoft.com>
This commit is contained in:
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddAuthentication().AddIdentityBearerToken<MyUser>();
|
||||
builder.Services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme);
|
||||
builder.Services.AddAuthorizationBuilder();
|
||||
|
||||
builder.Services.AddDbContext<AppDbContext>(options => options.UseInMemoryDatabase("AppDb"));
|
||||
|
||||
@@ -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}}"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user