mirror of
https://github.com/bitwarden/server.git
synced 2025-06-08 04:00:31 -05:00
doc: move summary xml comments to interface.
This commit is contained in:
parent
f83b0e8978
commit
a5411cd525
@ -1,5 +1,6 @@
|
|||||||
using Bit.Core.Auth.Entities;
|
using Bit.Core.Auth.Entities;
|
||||||
using Bit.Core.Auth.Models.Api.Request.AuthRequest;
|
using Bit.Core.Auth.Models.Api.Request.AuthRequest;
|
||||||
|
using Bit.Core.Context;
|
||||||
|
|
||||||
#nullable enable
|
#nullable enable
|
||||||
|
|
||||||
@ -9,6 +10,12 @@ public interface IAuthRequestService
|
|||||||
{
|
{
|
||||||
Task<AuthRequest?> GetAuthRequestAsync(Guid id, Guid userId);
|
Task<AuthRequest?> GetAuthRequestAsync(Guid id, Guid userId);
|
||||||
Task<AuthRequest?> GetValidatedAuthRequestAsync(Guid id, string code);
|
Task<AuthRequest?> GetValidatedAuthRequestAsync(Guid id, string code);
|
||||||
|
/// <summary>
|
||||||
|
/// Validates and Creates an <see cref="AuthRequest" /> in the database, as well as pushes it through notifications services
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This method can only be called inside of an HTTP call because of it's reliance on <see cref="ICurrentContext" />
|
||||||
|
/// </remarks>
|
||||||
Task<AuthRequest> CreateAuthRequestAsync(AuthRequestCreateRequestModel model);
|
Task<AuthRequest> CreateAuthRequestAsync(AuthRequestCreateRequestModel model);
|
||||||
Task<AuthRequest> UpdateAuthRequestAsync(Guid authRequestId, Guid userId, AuthRequestUpdateRequestModel model);
|
Task<AuthRequest> UpdateAuthRequestAsync(Guid authRequestId, Guid userId, AuthRequestUpdateRequestModel model);
|
||||||
}
|
}
|
||||||
|
@ -85,12 +85,6 @@ public class AuthRequestService : IAuthRequestService
|
|||||||
return authRequest;
|
return authRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Validates and Creates an <see cref="AuthRequest" /> in the database, as well as pushes it through notifications services
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// This method can only be called inside of an HTTP call because of it's reliance on <see cref="ICurrentContext" />
|
|
||||||
/// </remarks>
|
|
||||||
public async Task<AuthRequest> CreateAuthRequestAsync(AuthRequestCreateRequestModel model)
|
public async Task<AuthRequest> CreateAuthRequestAsync(AuthRequestCreateRequestModel model)
|
||||||
{
|
{
|
||||||
if (!_currentContext.DeviceType.HasValue)
|
if (!_currentContext.DeviceType.HasValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user