Note that there are some explanatory texts on larger screens.

plurals
  1. POusing DotNetOpenAuth to verify a JavaScript OAuthSimple querystring
    primarykey
    data
    text
    <p>I'm working on a project that will generate an OAuth querystring in JavaScript, using HTTPS and in internal application, so security is not a major concern at this point (figured I'd mention that up front )</p> <p>The JavaScript querystring is used to call a C# script on a different server and domain, essentially to pass data from the internal application to the C# application, and allow to verification that a) the query comes from the right source, and b) the query is valid and hasn't expired, etc.</p> <p>OAuthSimple gives me a signed URL like this: <a href="http://www.myremotesite.com/mycodepath/mycodefile.aspx?firstname=Kevin&amp;lastname=Blount&amp;oauth_consumer_key=ThisIsTheConsumerKey&amp;oauth_nonce=nuOoM&amp;oauth_signature=DAoaSxD5SvVFTTDNSxiTbANzGlc%3D&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1313162452" rel="nofollow">http://www.myremotesite.com/mycodepath/mycodefile.aspx?firstname=Kevin&amp;lastname=Blount&amp;oauth_consumer_key=ThisIsTheConsumerKey&amp;oauth_nonce=nuOoM&amp;oauth_signature=DAoaSxD5SvVFTTDNSxiTbANzGlc%3D&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1313162452</a></p> <p>My question is, one the C# side of things.. what do I do next? I've two thoughts, but I can't work out which I need to explore:</p> <ol> <li>using C# generate a new signed URL and compare the two (or just compare the oauth_signature values)</li> <li>take the querystring and somehow decrypt/decode it and verify it.</li> </ol> <p>I'm told that DotNetOpenAuth is the standard to use, but I can't figure out my next step using it.</p> <p>Can I get some advice on what I need to look into, or articles that explain how I should proceed? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload