Display the verifier if OAuth 1.0a is being used in OOB mode
This commit is contained in:
parent
1c3a9ee62b
commit
2150d1021e
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue