# SSO does not work with wordpress

**URL:** https://forum.yunohost.org/t/sso-does-not-work-with-wordpress/38374
**Category:** Support apps
**Tags:** wordpress, bug, french, deutsch, english
**Created:** [August 22, 2025, 1:33pm UTC](https://forum.yunohost.org/t/sso-does-not-work-with-wordpress/38374 "2025-08-22T13:33:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rab-bits](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@rab-bits](https://forum.yunohost.org/u/rab-bits)
#### Post date: [August 22, 2025, 1:33pm UTC](https://forum.yunohost.org/t/sso-does-not-work-with-wordpress/38374/1 "2025-08-22T13:33:33Z")

</div>

**What type of hardware are you using** : VPS bought online  
**What YunoHost version are you running** : 12.1.12.1  
**What app is this about** : Wordpress

### Describe your issue

SSO does not work correct with wordpress. I have reinstalled debian, yunohost and wordpress several times on a VPS, debian 12. Unfortunately, sso is nothing but a disadvantage for wordpress, because one has to login at first to yunohost and then to wordpress, and logout must also be done twice. If one tries to login directly to wordpress, one is redirected to yunohost. So, it has become an enforced double-sign-on. (Yes, the user has same login and password in yunohost and wordpress, and installing LDAP does not help.)

UPDATE: I found how to disable sso for an app.

In the relevant conf file in /etc/nginx/conf.dk simply comment the following lines:  
#include /etc/nginx/conf.d/yunohost\_sso.conf.inc;  
#include /etc/nginx/conf.d/yunohost\_admin.conf.inc;  
#include /etc/nginx/conf.d/yunohost\_api.conf.inc;

That ‘solved’ the double-sign-on problem, but the bug persist.

> [@Disable user interface and admin for domain with my\_webapp (SOLVED, including hook script)](https://forum.yunohost.org/t/disable-user-interface-and-admin-for-domain-with-my-webapp/35421):
>
> What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.11 What app is this about: my\_webapp Describe your issue I have multiple domains, say example.com and example.org. On one of them, say example.org I have installed a my\_webapp and made it default for that domain. Now I want to remove both /yunohost/sso and /yunohost/admin from working on example.org but keep it as usual on example.com and any other domains. So I commented these lines as follows…

### Share relevant logs or error messages

from /var/log/nginx/example.dk-access.log

111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /wp/admin HTTP/2.0” 302 0 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /wp/wp-admin/ HTTP/2.0” 302 0 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /wp/wp-login.php?redirect\_to=https%3A%2F%2Fexample.dk%2Fwp%2Fwp-admin%2F&reauth=1 HTTP/2.0” 302 138 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /yunohost/sso?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x HTTP/2.0” 301 162 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x HTTP/2.0” 200 11028 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /yunohost/sso/customassets/custom.css HTTP/2.0” 404 146 “[https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:00 +0200] “GET /yunohost/portalapi/public HTTP/2.0” 200 402 “[https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - - [22/Aug/2025:15:01:14 +0200] “POST /yunohost/portalapi/login HTTP/2.0” 200 9 “[https://example.dk/yunohost/sso/login?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/login?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - theuser [22/Aug/2025:15:01:14 +0200] “GET /wp/wp-login.php?redirect\_to=[https://example.dk/wp/wp-admin/&reauth=1](https://example.dk/wp/wp-admin/&reauth=1) HTTP/2.0” 200 7696 “[https://example.dk/yunohost/sso/login?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/login?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
…  
111.111.111.111 - theuser [22/Aug/2025:15:01:22 +0200] “POST /wp/wp-login.php HTTP/2.0” 302 0 “[https://example.dk/wp/wp-login.php?redirect\_to=https://example.dk/wp/wp-admin/&reauth=1](https://example.dk/wp/wp-login.php?redirect_to=https://example.dk/wp/wp-admin/&reauth=1)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”  
111.111.111.111 - theuser [22/Aug/2025:15:01:23 +0200] “GET /wp/wp-admin/ HTTP/2.0” 200 137837 “[https://example.dk/wp/wp-login.php?redirect\_to=https://example.dk/wp/wp-admin/&reauth=1](https://example.dk/wp/wp-login.php?redirect_to=https://example.dk/wp/wp-admin/&reauth=1)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/60.5 Safari/605.1.15”

from /var/log/nginx/example.dk-error.log

2025/08/22 15:00:31 [error] 216881#216881: \*11413 open() “/usr/share/yunohost/portal/customassets/example.dk.custom.css” failed (2: No such file or directory), client: 111.111.111.111, server: example.dk, request: “GET /yunohost/sso/customassets/custom.css HTTP/2.0”, host: “example.dk”, referrer: “[https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)”  
2025/08/22 15:01:00 [error] 216881#216881: \*11413 open() “/usr/share/yunohost/portal/customassets/example.dk.custom.css” failed (2: No such file or directory), client: 111.111.111.111, server: example.dk, request: “GET /yunohost/sso/customassets/custom.css HTTP/2.0”, host: “example.dk”, referrer: “[https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x](https://example.dk/yunohost/sso/?r=aHR0cHM6Ly9oYWxsZWJ5b3JlLmRrL3dwL3dwLWxvZ2luLnBocD9yZWRpcmVjdF90bz1odHRwczovL2hhbGxlYnlvcmUuZGsvd3Avd3AtYWRtaW4vJnJlYXV0aD0x)”

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [September 6, 2025, 1:33pm UTC](https://forum.yunohost.org/t/sso-does-not-work-with-wordpress/38374/2 "2025-09-06T13:33:45Z")

</div>

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