Sha256: cc565ede7d543f56d4174181be4bf49ce481663666e04428705c6e8a6f536bc3
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 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
4 entries across 4 versions & 1 rubygems