# Problems while using Discourse as SSO it

**URL:** https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567
**Category:** Support
**Created:** [April 21, 2019, 1:14am UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567 "2019-04-21T01:14:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Iscle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iscle/32/138958_2.png) [@Iscle](https://meta.discourse.org/u/Iscle)
#### Post date: [April 21, 2019, 1:14am UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567/1 "2019-04-21T01:14:20Z")

</div>

Hi there,

I’m working on using Discourse as SSO, however whenever I make the call to “/session/sso\_provider” I get an error. The log shows the following:  
NoMethodError (undefined method `match' for nil:NilClass) /var/www/discourse/app/services/wildcard_domain_checker.rb:7:in `check\_domain’

I’m using build v2.3.0.beta8 +44

Is this a known issue?

Thanks,  
Iscle

---

<div class="post-metadata">

### Author: ![Iscle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iscle/32/138958_2.png) [@Iscle](https://meta.discourse.org/u/Iscle)
#### Post date: [June 12, 2019, 9:29pm UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567/2 "2019-06-12T21:29:27Z")

</div>

Any news? Still happening with the latest build…  
Thanks.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 12, 2019, 10:07pm UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567/3 "2019-06-12T22:07:38Z")

</div>

What is the value of `sso provider secrets` in your site? We changed how the setting work, and now it’s a list of (URL, secret) tuples. Sounds like you have a tuple where the URL is missing?

---

<div class="post-metadata">

### Author: ![Iscle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iscle/32/138958_2.png) [@Iscle](https://meta.discourse.org/u/Iscle)
#### Post date: [June 12, 2019, 10:39pm UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567/4 "2019-06-12T22:39:35Z")

</div>

Hi Rafael,

Thanks for your answer, I just solved the issue!  
It turns out I was missing “https://” on the return url (in the backend of my app)! Very stupid mistake, I know… Maybe you can add a check to avoid that from happening?

Anyway, thanks again 😃  
Have a nice day!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 12, 2019, 10:39pm UTC](https://meta.discourse.org/t/problems-while-using-discourse-as-sso-it/115567/5 "2019-07-12T22:39:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
