Happy flow for creating realms works
But needs more validating...
This commit is contained in:
parent
f99c97f392
commit
92b34bd0b5
25 changed files with 437 additions and 12 deletions
|
|
@ -1,5 +1,8 @@
|
|||
using IdentityShroud.Core.Messages;
|
||||
using IdentityShroud.Core.Messages.Realm;
|
||||
using IdentityShroud.Core.Services;
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace IdentityShroud.Api;
|
||||
|
||||
|
|
@ -10,6 +13,9 @@ public static class RealmController
|
|||
var realm = app.MapGroup("/realms/{slug}");
|
||||
|
||||
realm.MapGet("", GetRoot);
|
||||
realm.MapPost("", (RealmCreateRequest request, [FromServices] RealmService service) =>
|
||||
service.Create(request))
|
||||
.WithName("Create Realm");
|
||||
realm.MapGet(".well-known/openid-configuration", GetOpenIdConfiguration);
|
||||
|
||||
var openidConnect = realm.MapGroup("openid-connect");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue