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

Version Path
opro-0.4.0 app/views/opro/oauth/tests/index.html.erb
opro-0.3.3 app/views/opro/oauth/tests/index.html.erb
opro-0.3.2 app/views/opro/oauth/tests/index.html.erb
opro-0.3.1 app/views/opro/oauth/tests/index.html.erb
opro-0.3.0 app/views/opro/oauth/tests/index.html.erb
opro-0.3.0.pre3 app/views/opro/oauth/tests/index.html.erb
opro-0.3.0.pre2 app/views/opro/oauth/tests/index.html.erb
opro-0.3.0.pre1 app/views/opro/oauth/tests/index.html.erb
opro-0.3.0.pre app/views/opro/oauth/tests/index.html.erb
opro-0.2.1.pre app/views/opro/oauth/tests/index.html.erb
opro-0.2.0 app/views/opro/oauth/tests/index.html.erb
opro-0.1.0 app/views/opro/oauth/tests/index.html.erb
opro-0.0.3 app/views/oauth/tests/index.html.erb
opro-0.0.2 app/views/oauth/tests/index.html.erb
opro-0.0.1 app/views/oauth/tests/index.html.erb