mirror of
https://github.com/bitwarden/server.git
synced 2025-05-11 22:52:15 -05:00
Tweaks to xmldoc and error wording
This commit is contained in:
parent
8345ce01cc
commit
346b166089
@ -9,7 +9,7 @@ namespace Bit.Api.AdminConsole.Authorization;
|
|||||||
public static class HttpContextExtensions
|
public static class HttpContextExtensions
|
||||||
{
|
{
|
||||||
public const string NoOrgIdError =
|
public const string NoOrgIdError =
|
||||||
"A route decorated with with '[Authorize<Requirement>]' should include a route value named 'orgId' either through the [Controller] attribute or through a '[Http*]' attribute.";
|
"A route decorated with with '[Authorize<Requirement>]' must include a route value named 'orgId' either through the [Controller] attribute or through a '[Http*]' attribute.";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the result of the callback, caching it in HttpContext.Features for the lifetime of the request.
|
/// Returns the result of the callback, caching it in HttpContext.Features for the lifetime of the request.
|
||||||
@ -32,8 +32,10 @@ public static class HttpContextExtensions
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if the user is a ProviderUser for a Provider which manages the specified organization, otherwise false.
|
/// Returns true if the user is a ProviderUser for a Provider which manages the specified organization, otherwise false.
|
||||||
/// This data is fetched from the database and cached as a HttpContext Feature for the lifetime of the request.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This data is fetched from the database and cached as a HttpContext Feature for the lifetime of the request.
|
||||||
|
/// </remarks>
|
||||||
public static async Task<bool> IsProviderUserForOrgAsync(
|
public static async Task<bool> IsProviderUserForOrgAsync(
|
||||||
this HttpContext httpContext,
|
this HttpContext httpContext,
|
||||||
IProviderUserRepository providerUserRepository,
|
IProviderUserRepository providerUserRepository,
|
||||||
@ -46,12 +48,10 @@ public static class HttpContextExtensions
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the ProviderUserOrganizations for a user. These are the organizations the ProviderUser manages via their Provider, if any.
|
/// Returns the ProviderUserOrganizations for a user. These are the organizations the ProviderUser manages via their Provider, if any.
|
||||||
/// This data is fetched from the database and cached as a HttpContext Feature for the lifetime of the request.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="httpContext"></param>
|
/// <remarks>
|
||||||
/// <param name="providerUserRepository"></param>
|
/// This data is fetched from the database and cached as a HttpContext Feature for the lifetime of the request.
|
||||||
/// <param name="userId"></param>
|
/// </remarks>
|
||||||
/// <returns></returns>
|
|
||||||
private static async Task<IEnumerable<ProviderUserOrganizationDetails>> GetProviderUserOrganizationsAsync(
|
private static async Task<IEnumerable<ProviderUserOrganizationDetails>> GetProviderUserOrganizationsAsync(
|
||||||
this HttpContext httpContext,
|
this HttpContext httpContext,
|
||||||
IProviderUserRepository providerUserRepository,
|
IProviderUserRepository providerUserRepository,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user