nextcloud / user_oidc

OIDC connect user backend for Nextcloud
GNU Affero General Public License v3.0
83 stars 33 forks source link

Could not update the provider: The discovery endpoint is not reachable. #803

Open Snuffy2 opened 7 months ago

Snuffy2 commented 7 months ago

I'm not sure where the issue is but I'm unable to get this working. I'm using Authentik for OIDC.

The Configuration URL appears to be correct since when I open it in a browser it is loading this (domain name replaced): openid-configuration.json

I've triple checked the Config Id and Secret are correct and even removed and regenerated new ones in Authentik to be sure.

Happy to provide any other logs or try anything else suggested.

tugdualenligne commented 6 months ago

Same issue here. Authentik version 2024.2.2 and Nextcloud 28.0.2

abjoseph commented 6 months ago

Same issue here as well. Authentik version 2024.2.2 and Nextcloud 27.1.3

julien-nc commented 6 months ago

You can check if you see Discovery endpoint validation error in the nextcloud server logs. These lines should contain more information about why the discovery endpoint can't be reached.

If there is no such line, it most likely means the network request from NC to the discovery endpoint failed. I could give you a patch to get more information about that in the logs.

abjoseph commented 6 months ago

@julien-nc I found this comment and after applying the same setting, it resolved the error reported by OP. Not saying it's the resolution for OP but it worked for me. Maybe something that should be documented in the main README.

CC: https://github.com/nextcloud/user_oidc/issues/555

tugdualenligne commented 6 months ago

Thanks I’ve got this setting already in my config.php file and it doesn’t resolve my issue

Le ven. 29 mars 2024 à 22:52, Brandon Joseph @.***> a écrit :

@julien-nc https://github.com/julien-nc I found this comment https://github.com/nextcloud/user_oidc/issues/555#issuecomment-1379674153 and after applying the same setting, it resolved the error reported by OP. Not saying it's the resolution for OP but it worked for me. Maybe something that should be documented in the main README.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/user_oidc/issues/803#issuecomment-2027769614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5OO4XP2BKV5JY5EWTXMPLY2XPBLAVCNFSM6AAAAABEA76O4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXG43DSNRRGQ . You are receiving this because you commented.Message ID: @.***>

4sens commented 1 week ago

Having the same issue here. Any updates?