namespace IOL.BookmarkThing.Server.Api.Internal; /// [Authorize] [ApiController] public class BaseInternalRoute : ControllerBase { /// /// User data for the currently logged on user. /// protected LoggedInInternalUser LoggedInUser => new() { Username = User.Identity?.Name, Id = User.Claims.SingleOrDefault(c => c.Type == ClaimTypes.NameIdentifier)?.Value.ToGuid() ?? default }; }