Display the verifier if OAuth 1.0a is being used in OOB mode

This commit is contained in:
Tom Hughes 2010-09-20 21:44:54 +01:00
parent 1c3a9ee62b
commit 2150d1021e
2 changed files with 6 additions and 2 deletions

View file

@ -57,7 +57,7 @@ class OauthController < ApplicationController
else
redirect_url = @token.oob? ? @token.client_application.callback_url : @token.callback_url
end
if redirect_url
if redirect_url and not redirect_url.empty?
if @token.oauth10?
redirect_to "#{redirect_url}?oauth_token=#{@token.token}"
else

View file

@ -1 +1,5 @@
<h1>You have allowed this request</h1>
<h1>You have allowed this request</h1>
<% if @token.oob? %>
<p>The verification code is <%= @token.verifier %></p>
<% end %>