user_oidc icon indicating copy to clipboard operation
user_oidc copied to clipboard

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

Open Snuffy2 opened this issue 1 year ago • 11 comments

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.

Snuffy2 avatar Mar 01 '24 02:03 Snuffy2

Same issue here. Authentik version 2024.2.2 and Nextcloud 28.0.2

tugdualenligne avatar Mar 21 '24 20:03 tugdualenligne

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

abjoseph avatar Mar 24 '24 17:03 abjoseph

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.

julien-nc avatar Mar 25 '24 10:03 julien-nc

@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

abjoseph avatar Mar 29 '24 21:03 abjoseph

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: @.***>

tugdualenligne avatar Apr 01 '24 08:04 tugdualenligne

Having the same issue here. Any updates?

4sens avatar Sep 23 '24 22:09 4sens

Hi, if anyone can report whether the issue still persists on the latest versions of Authentik/Nextcloud/user_oidc and provide some reproducible steps if so, that would be greatly appreciated. We'll take a look if the issue is confirmed to be on our end.

edward-ly avatar Oct 03 '24 20:10 edward-ly

Having the same issue here. I am on latest versions of Authentik/Nextcloud/user_oidc. Logging says:

Error | user_oidc | LocalServerExceptionHost "192.168.1.230" (xx.xx.xx.xx:80) violates local access rulesDiscovery endpoint validation error

I added in config.php 'allow_local_remote_servers' => 'true' but no success.

Paco93 avatar Oct 04 '24 08:10 Paco93

If you're running Nextcloud/Authentik inside Docker, it's possible that local IP addresses aren't being recognized correctly from within the container. Try running ip a and using one of the IP addresses listed that is assigned to Docker instead for all containers.

Anyway, I'm not sure if I still have enough information, will investigate further.

edward-ly avatar Oct 04 '24 16:10 edward-ly

Yes I am running nextcloud/authentik under docker but on different machines (actually different lxc containers) and with a proxy manager (NPM) on another machine on my lan. However I don't think the issue is with docker networking. In fact I can successufully download the json file at the Discovery endpoint from within the nextcloud container via wget. I suspect the issue is rather with nextcloud config .

Paco93 avatar Oct 05 '24 07:10 Paco93