Hello, I have some old OAUTH/XAUTH code I am debugging and it uses the old DevDefined library. The underlying HTTP requests/responses are simply not being picked up by Fiddler. All other requests and responses on my machine are being picked up and displayed.
Here is an example of some C# code invoking the DevDefined method GetAccessTokenUsingXAuth(), and I know it is running and working, but I can't see the underlying request/response and wonder if some proxy is involved:
/// <summary>
/// Create Session
/// </summary>
/// <returns>Session, authorized for OAUTH using XAUTH protocol</returns>
private static IOAuthSession CreateSession()
{
var consumerContext = new OAuthConsumerContext
{
ConsumerKey = ConsumerKey,
ConsumerSecret = ConsumerSecret,
SignatureMethod = SignatureMethod.HmacSha1,
};
var session = new OAuthSession(consumerContext, new Uri(BdBaseUrl + XAuthRelativeUrl));
try
{
session.GetAccessTokenUsingXAuth(null, ServiceUser, ServicePassword);
}
catch (Exception e)
{
if (DumpOAuthInfoOnException)
{
string serializedSession = JsonConvert.SerializeObject(session);
string msg =
$"Inner Exception on GetAccessTokenUsingXAuth. Username {ServiceUser}, Password {ServicePassword}, Session: {serializedSession}";
throw new Exception(msg, e);
}
throw;
}
return session;
}
Thank you so much @Lini. THis works like a charm. So appreciate it.