Exemplo n.º 1
0
 /// <summary>
 /// Synchronously executes the OAuth 2.0 Authentication Request and returns the result.
 /// </summary>
 /// <param name="authenticator">The <see cref="IRefreshGrantAuthenticator"/>.</param>
 /// <param name="authenticationRequest">The Authentication Request this authenticator will attempt.</param>
 /// <returns>An Authentication Result representing the successful authentication.</returns>
 /// <exception cref="Error.ResourceException">The authentication failed.</exception>
 public static IOauthGrantAuthenticationResult Authenticate(this IRefreshGrantAuthenticator authenticator, IRefreshGrantRequest authenticationRequest)
 => (authenticator as IRefreshGrantAuthenticatorSync).Authenticate(authenticationRequest);
 /// <summary>
 /// Synchronously executes the OAuth 2.0 Authentication Request and returns the result.
 /// </summary>
 /// <param name="authenticator">The <see cref="IRefreshGrantAuthenticator"/>.</param>
 /// <param name="authenticationRequest">The Authentication Request this authenticator will attempt.</param>
 /// <returns>An Authentication Result representing the successful authentication.</returns>
 /// <exception cref="Error.ResourceException">The authentication failed.</exception>
 public static IOauthGrantAuthenticationResult Authenticate(this IRefreshGrantAuthenticator authenticator, IRefreshGrantRequest authenticationRequest)
     => (authenticator as IRefreshGrantAuthenticatorSync).Authenticate(authenticationRequest);