last ...
This commit is contained in:
@@ -15,6 +15,12 @@ namespace xIds.Controllers
|
||||
|
||||
//
|
||||
#region Open Actions ...
|
||||
/// <summary>
|
||||
/// Get Open Action ...
|
||||
/// </summary>
|
||||
/// <param name="token"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[HttpGet("Open")]
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace xIds.Controllers
|
||||
//
|
||||
#region Test Actions ...
|
||||
/// <summary>
|
||||
/// API Read Scope
|
||||
/// API Read Scope ...
|
||||
/// </summary>
|
||||
/// <returns>string message</returns>
|
||||
[RequireXPowered]
|
||||
@@ -28,7 +28,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// API Write Scope
|
||||
/// API Write Scope ...
|
||||
/// </summary>
|
||||
/// <returns>string message</returns>
|
||||
[RequireXPowered]
|
||||
@@ -41,7 +41,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// API Admin Scope
|
||||
/// API Admin Scope ...
|
||||
/// </summary>
|
||||
/// <returns>string message</returns>
|
||||
[RequireXPowered]
|
||||
@@ -54,7 +54,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// API Manage Scop
|
||||
/// API Manage Scop ...
|
||||
/// </summary>
|
||||
/// <returns>string message</returns>
|
||||
[RequireXPowered]
|
||||
@@ -67,7 +67,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Action which returns a List of Authenticated User Claims
|
||||
/// a simple Action which returns a List of Authenticated User Claims ...
|
||||
/// </summary>
|
||||
/// <returns>string message which represent current user's claims</returns>
|
||||
[RequireXPowered]
|
||||
@@ -92,7 +92,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello User for Checking Authentication and Policy
|
||||
/// a simple Hello User for Checking Authentication and Policy ...
|
||||
/// </summary>
|
||||
/// <returns>string message which contains authenticated user name</returns>
|
||||
[RequireXPowered]
|
||||
@@ -109,7 +109,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello User for Checking Authentication and Policy
|
||||
/// a simple Hello User for Checking Authentication and Policy ...
|
||||
/// </summary>
|
||||
/// <returns>string message which contains authenticated user name</returns>
|
||||
[RequireXPowered]
|
||||
@@ -126,7 +126,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello User for Checking Authentication and Policy
|
||||
/// a simple Hello User for Checking Authentication and Policy ...
|
||||
/// </summary>
|
||||
/// <returns>string message which contains authenticated user name</returns>
|
||||
[RequireXPowered]
|
||||
@@ -143,7 +143,7 @@ namespace xIds.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello User for Checking Authentication and Policy
|
||||
/// a simple Hello User for Checking Authentication and Policy ...
|
||||
/// </summary>
|
||||
/// <returns>string message which contains authenticated user name</returns>
|
||||
[RequireXPowered]
|
||||
@@ -159,11 +159,15 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello for Accessing ApiKey Authorization ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[XApiKeyAccess]
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[HttpGet("Test/HiApiKeyAccess")]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
[XApiKeyAccess(scopes: [XApiKeyScope.Manage])]
|
||||
public ActionResult<string> HiApiKeyAccess()
|
||||
{
|
||||
//
|
||||
@@ -173,11 +177,15 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello for Accessing ApiKey Read Access ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
[HttpGet("Test/HiApiKeyReadAccess")]
|
||||
[XApiKeyAccess(scopes: [XApiKeyScope.Read])]
|
||||
[XApiKeyAccess(Scopes = [XApiKeyScope.Read])]
|
||||
public ActionResult<string> HiApiKeyReadAccess()
|
||||
{
|
||||
//
|
||||
@@ -187,6 +195,10 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello for Accessing ApiKey Write Access ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
@@ -201,6 +213,10 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello for Accessing ApiKey Manage Access ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
@@ -215,6 +231,10 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// a simple Hello for Accessing ApiKey Admin Access ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xModels.Dtos;
|
||||
using System.Threading;
|
||||
using xIdentityHelper;
|
||||
using System.Threading;
|
||||
using xCommons.Attributes;
|
||||
using xCommons.Extensions;
|
||||
using xIdentityModels.Dtos;
|
||||
|
||||
Reference in New Issue
Block a user