Sha256: cc2510a9f254fdd5551b352a44bd158a70eb906f50a757d553f109ec980a792e
Contents?: true
Size: 1.2 KB
Versions: 15
Compression:
Stored size: 1.2 KB
Contents
<h2>Oauth Test</h2> <p>Use this url scheme to test your OAuth application</p> <h2>Test OAuth Allow</h2> <p> If you send a valid OAuth request to any oauth_test url such as <%= link_to oauth_test_path(:show_me_the_money), oauth_test_path(:show_me_the_money) %> you should see a response like this </p> <pre><code><%= {:status => 200, :message => 'Oauth Worked!! ', :params => {:id => 'show_me_the_money', :access_token => '3948fuAlo10gnsu'} }.to_json %></code></pre> <p> If the request is not valid you will receive a message detailing the errors. </p> <h2>Test OAuth Disallow</h2> <p> If you send a valid OAuth request using the 'DELETE' HTTP method to <%= oauth_test_path(:show_me_the_money) %> you should see a response like below.</p> <%= button_to oauth_test_path(:show_me_the_money), oauth_test_path(:show_me_the_money), :method => :delete, :id => 'deleteButton' %> <pre><code><%= {:status => 401, :message => 'Oauth is Disabled on this Action, this is the correct result!', :params => {:id => 'show_me_the_money', :access_token => '3948fuAlo10gnsu'}}.to_json %></code></pre> <p> If you get a 200 result, then there is something configured incorrectly on the server, please contact the administrator. </p>
Version data entries
15 entries across 15 versions & 1 rubygems