# Error using discourse-oauth2-basic plugin with NeonCRM

**URL:** <https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [November 5, 2019, 12:18am UTC](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596 "2019-11-05T00:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)\
**Post date:** [November 13, 2019, 7:40pm UTC](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596/6 "2019-11-13T19:40:51Z")

</div>

So if I use this URL instead:

`https://MY-NEON-ID.z2systems.com/np/oauth/auth?response_type=code&client_id=MY-CLIENT-ID&redirect_uri=https://MY-FORUM.COM/`

(I removed the callback part at the end of my redirect\_uri)

I actually make it to the NeonCRM login page, after which I enter my test user credentials and log in. I am then redirected to `MY-FORUM.COM`. But once I’m there I am not logged in at all. If I click on the “Login” button at the top of the page and click on the grey "login with OAtuh2: button, a new window opens with the following message:

 ![52](https://global.discourse-cdn.com/meta/original/3X/4/8/4848dd588c967fe460a9afc3b4ebc5689595676c.png)

And two errors show up in my logs:

```
ArgumentError (Invalid URI: )

```

/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/excon-0.64.0/lib/excon.rb:126:in `new’

and

```
Failed to handle exception in exception app middleware : Invalid URI:

```

---

_[View the full topic](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596)._
