summaryrefslogtreecommitdiffstats
path: root/src/server/Api/Internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Api/Internal')
-rw-r--r--src/server/Api/Internal/Account/GetClaimsRoute.cs2
-rw-r--r--src/server/Api/Internal/BaseInternalRoute.cs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/server/Api/Internal/Account/GetClaimsRoute.cs b/src/server/Api/Internal/Account/GetClaimsRoute.cs
index fde8887..b072a39 100644
--- a/src/server/Api/Internal/Account/GetClaimsRoute.cs
+++ b/src/server/Api/Internal/Account/GetClaimsRoute.cs
@@ -2,6 +2,8 @@ namespace IOL.BookmarkThing.Server.Api.Internal.Account;
public class GetClaimsRoute : RouteBaseInternalSync.WithoutRequest.WithActionResult
{
+ [ApiVersionNeutral]
+ [ApiExplorerSettings(IgnoreApi = true)]
[HttpGet("~/v{apiVersion:apiVersion}/account/claims")]
public override ActionResult Handle() {
if (HttpContext.Request.Query.ContainsKey("download")) {
diff --git a/src/server/Api/Internal/BaseInternalRoute.cs b/src/server/Api/Internal/BaseInternalRoute.cs
index e416da7..665be09 100644
--- a/src/server/Api/Internal/BaseInternalRoute.cs
+++ b/src/server/Api/Internal/BaseInternalRoute.cs
@@ -9,7 +9,7 @@ public class BaseInternalRoute : ControllerBase
/// User data for the currently logged on user.
/// </summary>
protected LoggedInInternalUser LoggedInUser => new() {
- Id = User.FindFirstValue(AppClaims.USER_ID).ToGuid(),
+ Id = User.FindFirstValue(AppClaims.USER_ID).AsGuid(),
Username = User.FindFirstValue(AppClaims.NAME),
};