# Overslaan "Toegang tot applicatie autoriseren"

**URL:** <https://meta.discourse.org/t/skip-authorize-application-access/167845>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [21 oktober 2020 om 10:41 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845 "2020-10-21T10:41:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bamthomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bamthomas/32/197603_2.png) [@bamthomas](https://meta.discourse.org/u/bamthomas)\
**Post date:** [21 oktober 2020 om 10:41 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845/1 "2020-10-21T10:41:51Z")

</div>

We are using discourse as a collaboration tool and we have [another app](https://github.com/ICIJ/datashare) to search documents. We would like to integrate comments about documents into discourse. Both are using an external SSO/Oauth provider inside our infrastructure.

We are using the User API Key to connect the two apps so that they can communicate. It works fine but we have to click on this “Authorize application access” form that we would like to avoid because we are in a trusted environment backed with OAuth.

Is there a way that we could avoid this “authorize” access step, or bypass it and go directly to User API Key creation, so that this page does not display and the users don’t have to perform this extra step? Is there a parameter that we could provide in the request so that this step is bypassed?

We tried to call `UserApiKeysController.create` first (instead of `UserApiKeysController.new`) but we had a CSRF error. So we tried to skip the token check like :

```plaintext
class UserApiKeysController < ApplicationController
  skip_before_action :verify_authenticity_token

```

But it doesn’t work either.

Would you see another way of doing this ?

thanks in advance

---

_[View the full topic](https://meta.discourse.org/t/skip-authorize-application-access/167845)._
