# Discourse (as provider) + WP SSO nonce error

**URL:** <https://meta.discourse.org/t/discourse-as-provider-wp-sso-nonce-error/117113>\
**Category:** WordPress\
**Created:** [07.Май.2019 19:48:12 UTC](https://meta.discourse.org/t/discourse-as-provider-wp-sso-nonce-error/117113 "2019-05-07T19:48:12Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [08.Май.2019 16:50:00 UTC](https://meta.discourse.org/t/discourse-as-provider-wp-sso-nonce-error/117113/9 "2019-05-08T16:50:00Z")

</div>

> [@Sami\_Syed](#):
>
> I’ve already tried that.

Thanks for trying it. The reason the code you have added is failing to update the cached nonce is because the page the login link is displayed on is also cached for non-logged in users. This means that the same string is appended to the login link on every page load.

I was able to login successfully to your site through Discourse by copying your login link’s URL and then appending a new random string to the `discourse_sso` parameter. I’ll try to come up with a proper fix for this.

---

_[View the full topic](https://meta.discourse.org/t/discourse-as-provider-wp-sso-nonce-error/117113)._
