Skip to content

Skipping application authorization

benyamin marx edited this page May 30, 2013 · 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 a trusted 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