예제 #1
0
 /// <summary>
 /// Create an authentication provider for token based authentication.
 /// </summary>
 /// <param name="tokenSupplier">
 ///            a supplier of the client auth token </param>
 /// <returns> the Authentication object initialized with the token credentials </returns>
 public static IAuthentication Token(Func <string> tokenSupplier)
 {
     return(DefaultImplementation.NewAuthenticationToken(tokenSupplier));
 }
예제 #2
0
 /// <summary>
 /// Create an authentication provider for token based authentication.
 /// </summary>
 /// <param name="token">
 ///            the client auth token </param>
 /// <returns> the Authentication object initialized with the token credentials </returns>
 public static IAuthentication Token(string token)
 {
     return(DefaultImplementation.NewAuthenticationToken(token));
 }