# Skip Authorization

Users using the Authorization Code Flow will see this screen after logging in:

![](https://2642277169-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_byyeZCyuU7HIel_tq%2F-LaWgV21mbTlySEJfpkn%2F-LaWh4dgekF3YXkk7r-9%2FOAuth%20authorization%20required%202019-03-21%2020-22-14.png?alt=media\&token=10247b5d-b457-4078-b9e6-70f81b0aa907)

Under some circumstances, you might want to let users skip the screen above and have [applications](https://doorkeeper.gitbook.io/guides/configuration/broken-reference) auto-approved (for example, when dealing with a trusted application).

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

{% code title="config/initializers/doorkeeper.rb" %}

```ruby
skip_authorization do
  true
end
```

{% endcode %}

If you need more control over which application or user can skip the authorization, the resource owner and client will be available as block arguments:

{% code title="config/initializers/doorkeeper.rb" %}

```ruby
skip_authorization do |resource_owner, client|
  client.superapp? || resource_owner.admin?
end
```

{% endcode %}
