Oauth cleanups

This commit is contained in:
Jordan Brown
2020-12-07 14:06:43 -05:00
parent 36044c826c
commit 3147ffd2bf
17 changed files with 102 additions and 58 deletions
@@ -15,11 +15,11 @@ namespace Tgstation.Server.Host.Security.OAuth
OAuthProvider Provider { get; }
/// <summary>
/// Gets the OAuth client ID of validator.
/// Gets the <see cref="OAuthProvider"/> of validator.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="Task{TResult}"/> resulting in the client ID of the validator on success, <see langword="null"/> on failure.</returns>
Task<string> GetClientId(CancellationToken cancellationToken);
Task<OAuthProviderInfo> GetProviderInfo(CancellationToken cancellationToken);
/// <summary>
/// Validate a given OAuth response <paramref name="code"/>.