OAuth; Ruby/Rails; 401 unauthorized; what are correct _path variables?

Been bedeviled for a while on 401 Unauthorized.  Where is the documentation and what are the proper _path variables?  (request_token_path, authorize_path, access_token_path)

401 appears to be an extremely frequent problem.  Are there any decent diagnostic tools available?  If not, why not, then?

Also, in the documentation, I only see 'PLAINTEXT' signature_method.  I can use the default 'HMAC-SHA1', right?

    @consumer = OAuth::Consumer.new('cce59e8e-05ed-4e20-914a-0a9781e8f834',  
      '15xxxxc6-7xx5-4xxa-8xxe-85xxxxxxxx35',                  # consumer_secret
      {
      :site               => 'https://external.ningapis.com',
      :scheme             => :header,                          # default - or :body
      :http_method        => :post,                            # default - or :get
      :signature_method   => 'HMAC-SHA1',
      :request_token_path => '/xn/rest/eldorado2/1.0/Token?xn_pretty=true',
      :authorize_path     => '/xn/rest/eldorado2/1.0/authorize',
      :access_token_path  => '/xn/rest/eldorado2/1.0/access_token',
      :timestamp          => Time.now.utc.to_i,
      :nonce              => Time.now.utc.to_i                 # arbitrary - use only once
     })
   
    @request_token = @consumer.get_request_token(:oauth_callback => 'http://ee3.rebates4sure.com/oauth/ning/callback')

401 unauthorized at the @request_token above.  (BTW, :authorize_path and :access_token_path are just my guess).  Can't get past this last statement.  Even though adjusted version (key / secret / ...) works with twitter, linkedin, yahoo, tumblr,

Tags: 401, access_token_path, authorize_path, oauth, rails, request_token_path, ruby, unauthorized

Views: 100

Reply to This

Replies to This Discussion

Hey, John. Sorry, but I am confounded by your post. It sounds like you may have a deep technical question that I may not be able to answer. Have you tried reaching out on our Developer's community? 

Apologies, Eric.  Having trouble getting an account / email address squared away on the Developer's side of the house.

Can you have someone there setup a dummy account or otherwise email me so I can go to where I'm supposed to be?

Sorry for any delays. I will check into this. 

RSS

Latest Activity

James Hawkins replied to Alex's discussion 'More styling in the Design Studio'
"Looks like you need to adjust height here from 300 (default) to 295. .row:after…"
10 minutes ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"actualy when using 5 rows its still there so what is going on? ok new thoery its loading as many as…"
4 hours ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"very minor bug but when u have  the profile icons rounded in the member box set to small and 2…"
4 hours ago
Margie replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"That's really good to hear about groups.  That's our site's main…"
5 hours ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"sweet awesom e job tho im using text badges and have a feeling that wont look so sweet im gonna go…"
5 hours ago
Margie replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"AGREE 100% on groups.  We are not interested in blogs.  Our groups are the main…"
5 hours ago
Thiago Santos de Moraes replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"The green background is not good to read."
6 hours ago
Strumelia replied to Shannon's discussion 'VOTE - NING 2.0 or NING 3.0'
"Huh??  Can you elaborate on this please?  or point us to where this is stated or shown?"
8 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service