예제 #1
0
 /// <summary>
 /// Returns the IAuthorizationState stored in the StoredStateClient instance.
 /// </summary>
 /// <param name="provider">OAuth2 client.</param>
 /// <returns>The stored authorization state.</returns>
 public static IAuthorizationState GetState(StoredStateClient provider)
 {
     provider.RefreshToken(provider.State);
     return provider.State;
 }
예제 #2
0
 /// <summary>
 /// Returns the IAuthorizationState stored in the StoredStateClient instance.
 /// </summary>
 /// <param name="provider">OAuth2 client.</param>
 /// <returns>The stored authorization state.</returns>
 static public IAuthorizationState GetState(StoredStateClient provider)
 {
     provider.RefreshToken(provider.State);
     return(provider.State);
 }
예제 #3
0
 /// <summary>
 /// Returns the IAuthorizationState stored in the StoredStateClient instance.
 /// </summary>
 /// <param name="provider">OAuth2 client.</param>
 /// <returns>The stored authorization state.</returns>
 static public IAuthorizationState GetState(StoredStateClient provider)
 {
     /*Esta primer linea la acabo de agregar*/
     provider.RefreshToken(provider.State);
     return(provider.State);
 }