Exemple #1
0
        public static OAuth2AccessTokenResponse Read(string responseString)
        {
            OAuth2AccessTokenResponse oAuth2AccessTokenResponse = new OAuth2AccessTokenResponse();

            oAuth2AccessTokenResponse.DecodeFromJson(responseString);
            return(oAuth2AccessTokenResponse);
        }
Exemple #2
0
 public static OAuth2Message CreateFromEncodedResponse(string responseString)
 {
     if (responseString.StartsWith("{\"error"))
     {
         return(OAuth2ErrorResponse.CreateFromEncodedResponse(responseString));
     }
     return(OAuth2AccessTokenResponse.Read(responseString));
 }