Skip to content

Skipping application authorization

matthewford edited this page Dec 4, 2012 · 4 revisions

Under some circumstances you might want to have applications auto-approved, so that the user skips the authorization step (for example if dealing with trusted a application).

This is possible via a configuration option skip_authorization which takes either true or false:

skip_authorization do
  true
end

or

skip_authorization do |resource_owner, client|
  client.superapp? || resource_owner.admin?
end
Clone this wiki locally