Skip to content

Commit

Permalink
Update xml comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndon-gabriel committed Dec 16, 2024
1 parent 228b791 commit 112065f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Medidata.MAuth.AspNetCore/MAuthAspNetCoreExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace Medidata.MAuth.AspNetCore
{
/// <summary>
/// MAuth extension methods.
/// </summary>
public static class MAuthAspNetCoreExtensions
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/Medidata.MAuth.Core/IMAuthAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace Medidata.MAuth.Core;

/// <summary>
/// MAuth authenticator.
/// </summary>
public interface IMAuthAuthenticator
{
/// <summary>
Expand Down
19 changes: 19 additions & 0 deletions src/Medidata.MAuth.Core/MAuthAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Medidata.MAuth.Core
{
/// <summary>
/// MAuth service class to process authentication.
/// </summary>
public class MAuthAuthenticator : IMAuthAuthenticator
{
private const int AllowedDriftSeconds = 300;
Expand All @@ -22,8 +25,17 @@ public class MAuthAuthenticator : IMAuthAuthenticator
private readonly IDateTimeOffsetWrapper _dateTimeOffsetWrapper;
private readonly Lazy<HttpClient> _lazyHttpClient;

/// <summary>
/// MAuth application uuid.
/// </summary>
public Guid ApplicationUuid => _options.ApplicationUuid;

/// <summary>
/// Create a new instance <see cref="MAuthAuthenticator"/>
/// </summary>
/// <param name="options">MAuth options</param>
/// <param name="logger">Logger</param>
/// <param name="cacheService">Cache service. (Optional)</param>
public MAuthAuthenticator(MAuthOptionsBase options, ILogger logger, ICacheService cacheService = null)
{
if (options.ApplicationUuid == default)
Expand All @@ -42,6 +54,13 @@ public MAuthAuthenticator(MAuthOptionsBase options, ILogger logger, ICacheServic
_dateTimeOffsetWrapper = options.DateTimeOffsetWrapper;
}

/// <summary>
/// Create a new instance <see cref="MAuthAuthenticator"/>
/// </summary>
/// <param name="options">MAuth options</param>
/// <param name="logger">Logger</param>
/// <param name="httpClient">Http Client</param>
/// <param name="cacheService">Cache service. (Optional)</param>
public MAuthAuthenticator(MAuthOptionsBase options, ILogger logger, HttpClient httpClient, ICacheService cacheService = null)
{
if (options.ApplicationUuid == default)
Expand Down

0 comments on commit 112065f

Please sign in to comment.