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

<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 16:22 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845/6 "2020-10-21T16:22:31Z")

</div>

Thanks @riking this works fine when we have an open session on discourse in the navigator.

We are able to initiate a new session by hand just calling `http://discourse_site/login` as we have `SiteSetting.enable_local_logins = false` and only one auth mechanism with oauth. The browser follows redirects on our oauth provider then redirects to discourse. It was what was happening under the hood when calling `/user-api-key/new`.

How could we initiate a new discourse session programmatically from the app if there is none ?

---

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