Nextcloud with cloudflare tunnel and authentik with OpenID or SSO Provider

What is the name of the domain?

nextcloud.domain.ltd sso.domain.ltd

What is the error number?

0

What is the issue you’re encountering

Nextcloud an Authentik are reacable by nextcloud.domein.ltd and sso.domain.ltd, The authentikcation by SSO of Openid Was working properly before i start ussing the Cloudflare tunnel, now i will switch over to the cloudflare tunnel but the loggin with SSO or OpenID is not working anymore. Nextcloud gives al the time a internal error back. Like " kid must be provided in JWT header " When i bypass the OpenId or SSO i can login with the administrator credentionals, this acoound is normaly not used.

What steps have you taken to resolve the issue?

  • Check the nextcloud AIO github page there we have some remarks for nextcloud behind a cloudflare tunnel
  • Follow the reserve proxy steps for Cloudflare

This is my next step to make a topic over here en check whats wrong. In my feeling the problem is somewhere that the cloudflare tunnel is blocking the validation of something is not good connected.
I can’t find a how to about Nextcloud with Authentik in combination with Cloudflare. Also when i replace Authentik for a simulari one i cant find it!
A moment that i write this i do not have the acces to provide some logs but is someone can tell me what is need it to debug this? i can update the needed iformation in a couple of hours.

Thanks in forward!