> For the complete documentation index, see [llms.txt](https://doorkeeper.gitbook.io/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doorkeeper.gitbook.io/guides/configuration/skip-authorization.md).

# Skip Authorization

How to use \`skip\_authorization\` configuration option

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

![](https://2642277169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_byyeZCyuU7HIel_tq%2Fuploads%2Fgit-blob-c33de809985c2f72798448234e697096d81d2aa7%2FOAuth%20authorization%20required%202019-03-21%2020-22-14.png?alt=media)

Under some circumstances, you might want to let users skip the screen above and have [applications](/guides/concepts/application.md) 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`:

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

```ruby
skip_authorization do
  true
end
```

{% endtab %}
{% endtabs %}

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:

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

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

{% endtab %}
{% endtabs %}
