/// <summary>
 ///   Determines whether this instance and another specified <seealso cref="AuthApplication"/>
 ///   object are semantically equal.
 /// </summary>
 protected bool Equals(AuthApplication other)
 {
     return(ClientId == other.ClientId && Equals(RedirectUri, other.RedirectUri) && Environment == other.Environment && RuntimePlatform == other.RuntimePlatform);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Resolves and returns a suitable authenticator.
 /// </summary>
 /// <param name="application">
 ///   A <see cref="AuthApplication"/> descriptor value.
 ///   Can be passed as a string.
 /// </param>
 /// <param name="log">
 ///   (optional)<br/>
 ///   A logger, for diagnostics purposes.
 /// </param>
 /// <returns>
 ///   An authenticator (implements <see cref="IAuthenticator"/>).
 /// </returns>
 /// <returns>
 ///   An authenticator (implements <see cref="IAuthenticator"/>).
 /// </returns>
 public static IAuthenticator GetAuthenticator(AuthApplication application, ILog log = null)
 => GetAuthenticator(AuthConfig.Default(application), log);