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

Cindy replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"This is where the link takes me http://httptheforestofhealingningcom.ning.com Looks cheep, like…"
7 minutes ago
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"I do all my own graphic design work, and would want to do so for this widget too. I've been…"
11 minutes ago

NC for Hire
Jen replied to Alex's discussion 'More styling in the Design Studio'
"Nice update. Problem: Seems to me that the mobile menu icon isn't working properly on android…"
16 minutes ago

NC for Hire
SweetPotato replied to Alex's discussion 'More styling in the Design Studio'
"Good job."
29 minutes ago
Alex replied to Alex's discussion 'More styling in the Design Studio'
"Themes that currently have rounded corners do so by way of CSS. We'll need to update them to…"
29 minutes ago

NC for Hire
SweetPotato replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"This can be done using the formstack sign up form and some custom design. I haven't…"
35 minutes ago
A discussion started by Sylvia Hysen was featured

NING 2.0- Sign-up for newsletter

TJ, Jen, FireTech, Patrick, Diane, SP & SE...I want to add a sign-up for newsletter to my front…See More
43 minutes ago
A discussion started by Alex was featured

More styling in the Design Studio

I'm excited to let you all know that today we're adding some new functionality to the Design…See More
45 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service