# 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:** 3

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [21 oktober 2020 om 11:25 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845/3 "2020-10-21T11:25:57Z")

</div>

> [@bamthomas](#):
>
> 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 :

I can certainly say this isn’t the correct way to go. Are you already using a plugin, or only interacting via HTTP?

If you’re using a plugin, you should not be interacting with `app/controllers/` instances, for the most part.

If you’re interacting over HTTP, _and_ using server-to-server communication, you would be better served with an Admin-created API key.

The User API is intended for client-to-server communication, where there is no way of providing code integrity over the client.

---

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