Nextcloud + Discourse with Discourse SSO don't work

Nextcloud version (eg, 20.0.5) : 29.0.0
Operating system and version (eg, Ubuntu 20.04) : Ubuntu 20.04.6 LTS
Apache or nginx version (eg, Apache 2.4.25) : Apache/2.4.41
PHP version (eg, 7.4) : 8.2

I have my Nextcloud instance here:

And Discourse SSO app configured like this:

Discourse here:

Configured like this:

Now if i go to my Discourse address i am redirected to Nextcoud login page. When i do log in then i get access only to Nextcloud.

What am i doing wrong?