# Skip Authorization

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

![](/files/-LaWh4dgekF3YXkk7r-9)

Under some circumstances, you might want to let users skip the screen above and have [applications](broken://pages/-L_cDSIWCBwco0S2p0T6) 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doorkeeper.gitbook.io/guides/configuration/skip-authorization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
