# 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:** 1

<div class="post-metadata">

**Author:** ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)\
**Post date:** [07.Май.2019 19:48:12 UTC](https://meta.discourse.org/t/discourse-as-provider-wp-sso-nonce-error/117113/1 "2019-05-07T19:48:12Z")

</div>

Hey guys,

I have my discourse setup as a provider and wordpress as the client.

And for some reason when I try to login to wordpress I get the error “expired nonce” and it reditects me to /wp-admin login screen. However, when I go back onto discourse, I am actully logged in.

The weird this is, the first time I tried it, it worked perfectly but now it isn’t anymore. I even tried on an incognito window.

So I assume this may be a problem with Wordpress and not discourse.

In specific the way I set it up?  
In order to get a menu option for users to log in/sign up, I did inspect element on the “Log in with discourse” shortcode. I then took the link that was in there and created menu links, as shown below:  
 ![Capture](https://global.discourse-cdn.com/meta/original/3X/c/a/cadb95b1c3d834973bfccbe853f97b9cc5d62cc3.jpeg)  
I don’t think this itself is an issue because even the “Log in with discourse” shortcode gives me the same error.

If you would like to test it out to see what the issue it, I created a test user.  
URL: [projectvanlife.com](http://projectvanlife.com)  
Username: bizness  
Password: test123456  
You will find the option to login via SSO at the top left of the screen (only visible on desktop atm)

Please help me find a solution to this problem. Thanks in advance!

---

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