# Return\_sso\_url 已提供但为空

**URL:** <https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541>\
**Category:** SSO\
**Created:** [2018年七月4日 09:20 UTC](https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541 "2018-07-04T09:20:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchncs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tchncs/32/63041_2.png) [@tchncs](https://meta.discourse.org/u/tchncs)\
**Post date:** [2018年七月4日 09:20 UTC](https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541/1 "2018-07-04T09:20:36Z")

</div>

Hello there,

i’d like to annoy you with this even tho i [already created an issue on github](https://github.com/pcd1193182/return_sso_url/issues/1).  
However it’s been some hours without any answer and i am kinda in a hurry - and not even sure if this is the projects fault or a discourse bug.

It is about [GitHub - pcd1193182/dokuwiki-discourse-sso: Authentication plugin for using Alliance Auth with dokuwiki · GitHub](https://github.com/pcd1193182/dokuwiki-discourse-sso), which is a fork of [GitHub - bravecollective/dokuwiki-authbrave: Authentication plugin for using BRAVE Collective core servies with dokuwiki · GitHub](https://github.com/bravecollective/dokuwiki-authbrave).

It inicially only ran against the configured rooturl which i adjusted to `.../session/sso_provider`, however after that discourse began to complain like _“return\_sso\_url is blank, it must be provided”_.  
And the link was indeed missing this part at least as far as i looked, who knows, maybe it’s part of the nonce thingie? However i adjusted the code like this:

```plaintext
`print '<a href="' . $cfg_sso_url . '?sso=' . $payload . '&sig=' . $sig . '&return_sso_url=' . $cfg_url_base .'">Log In with SSO</a>';`

```

The result is something like:  
[https://community.web.site/session/sso\_provider?sso=bm9...ZWMy&sig=ccc73...7c3&return\_sso\_url=https://wiki.web.site](https://community.web.site/session/sso_provider?sso=bm9...ZWMy&sig=ccc73...7c3&return_sso_url=https://wiki.web.site)  
…and still results into discourse complaining about a blank return url.

Any help would be great!

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2018年七月4日 17:29 UTC](https://meta.discourse.org/t/return-sso-url-is-blank-but-provided/91541/2 "2018-07-04T17:29:21Z")

</div>

The `return_sso_url` needs to be in the payload. Have a look at the ‘Implement SSO in your web app’ section of the [Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974) topic.
