# Not Found when getting an authorization code

**URL:** <https://forum.mautic.org/t/not-found-when-getting-an-authorization-code/10309>\
**Category:** Product Support\
**Created:** [March 3, 2018, 8:52am UTC](https://forum.mautic.org/t/not-found-when-getting-an-authorization-code/10309 "2018-03-03T08:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naughie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/naughie/32/203_2.png) [@Naughie](https://forum.mautic.org/u/Naughie)\
**Post date:** [March 3, 2018, 8:52am UTC](https://forum.mautic.org/t/not-found-when-getting-an-authorization-code/10309/1 "2018-03-03T08:52:11Z")

</div>

I read the [document on OAuth2 authorization](https://developer.mautic.org/#oauth-2) and went to [http://my.mautic.base/oauth/v2/authorize?client\_id=my\_client\_id&grant\_type=authorization\_code&redirect\_uri=http%3A%2F%2F127.0.0.1%2Fcallback%2Ffor%2Foauth2&response\_type=code&state=yddtxdmq](http://my.mautic.base/oauth/v2/authorize?client_id=my_client_id&grant_type=authorization_code&redirect_uri=http%3A%2F%2F127.0.0.1%2Fcallback%2Ffor%2Foauth2&response_type=code&state=yddtxdmq) via Chrome to get an authorization code. I was prompted to login there, and I got Not Found error after logging in. In my API credentials, the callback URI is [http://127.0.0.1/callback/for/oauth2](http://127.0.0.1/callback/for/oauth2).

Why I cannot get an authorization code?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 17, 2019, 4:34pm UTC](https://forum.mautic.org/t/not-found-when-getting-an-authorization-code/10309/2 "2019-10-17T16:34:10Z")

</div>


