Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update app/controllers/devise/oauth2_providable/authorizations_contro…

…ller.rb

allow partial changes
  • Loading branch information...
commit 8b410bd8aaf0764ac1a7fdc5ed95ecd76b75c8ce 1 parent 269196e
@ejschmitt ejschmitt authored
View
2  app/controllers/devise/oauth2_providable/authorizations_controller.rb
@@ -32,7 +32,7 @@ def respond(status, header, response)
def authorize_endpoint(allow_approval = false)
Rack::OAuth2::Server::Authorize.new do |req, res|
@client = Client.find_by_identifier(req.client_id) || req.bad_request!
- res.redirect_uri = @redirect_uri = req.verify_redirect_uri!(@client.redirect_uri)
+ res.redirect_uri = @redirect_uri = req.verify_redirect_uri!(@client.redirect_uri, true) #allow partial match
if allow_approval
if params[:approve].present?
case req.response_type
Please sign in to comment.
Something went wrong with that request. Please try again.