Permalink
Browse files

Moved these to the Sinatra OAuth Rack Middleware lib.

  • Loading branch information...
1 parent cc8cffc commit 6995b7bae45349fa439d9d8615f85f9fb6ea5def @eddanger committed Jan 29, 2009
Showing with 0 additions and 63 deletions.
  1. +0 −53 views/applications.erb
  2. +0 −10 views/authorize.erb
@@ -1,53 +0,0 @@
-<% if @error %>
- <div style="background-color: #fee; padding: 20px; margin-bottom: 10px;">
- <h2>Oops!</h2>
-
- <p><%= @error %></p>
- </div>
-<% end %>
-
-<% if @consumer_key and @consumer_secret %>
- <div style="background-color: #efe; padding: 20px; margin-bottom: 10px;">
- <h2>Application created!</h2>
-
- <h3>Save this information!</h3>
-
- <b>Consumer Key:</b>
- <%= @consumer_key %>
- <br/>
-
- <b>Consumer Secret:</b>
- <%= @consumer_secret %>
- </div>
-<% end %>
-
-
-<h2>My Applications</h2>
-
-<% if !@consumers.empty? %>
- <% @consumers.each do |consumer| %>
- <div style="background-color: #eef; padding: 20px; margin-bottom: 10px;">
- <b><%= consumer.callback %></b>
- <p>
- <b>Consumer Key:</b> <%= consumer.token.shared_key %>
- <br/>
- <b>Consumer Secret:</b> <%= consumer.token.secret_key %>
- </p>
- </div>
- <% end %>
-<% else %>
- You don't have any applications... yet.
-<% end %>
-
-<h3>Create New Application</h3>
-
-<div class="app">
- <form action="/oauth/applications" method="POST">
- <div>
- Application Callback:
- <br/>
- <input type="text" name="application_callback" id="application_callback" rows="20" />
- </div>
- <input type="submit" value="Create Application"/>
- </form>
-</div>
View
@@ -1,10 +0,0 @@
-<h2>You are about to authorize (<%= @request_token.consumer.callback %>)</h2>
-<form action="/oauth/authorize" method="post">
- <p>
- <input id="oauth_token" name="oauth_token" type="hidden" value="<%= @request_token.shared_key %>" />
- </p>
-
- <p>
- <input name="commit" type="submit" value="Authorize" />
- </p>
-</form>

0 comments on commit 6995b7b

Please sign in to comment.