mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 15:08:47 -07:00
fix(auth): don't read the provider's userinfo endpoint by default
Cloudflare Access answers userinfo without a Content-Type, which the
OpenID Connect handler rejects ("Unknown response type"), so every
sign-in failed after the code exchange. The ID token already carries
sub and email; DorkNet:SignIn:UseUserInfoEndpoint turns the call back
on for providers that need it.
This commit is contained in:
@@ -477,6 +477,9 @@ DorkNet__SignIn__ClientSecret=<client secret>
|
||||
DorkNet__SignIn__DisplayName=Cloudflare
|
||||
# Optional: scopes, default "openid email profile".
|
||||
DorkNet__SignIn__Scopes=openid email profile
|
||||
# Optional: also read the userinfo endpoint (default false; the ID token is
|
||||
# enough for most providers, and Cloudflare Access's userinfo can't be read).
|
||||
DorkNet__SignIn__UseUserInfoEndpoint=false
|
||||
```
|
||||
|
||||
Register these redirect URIs at the provider, one per host people sign in on:
|
||||
|
||||
Reference in New Issue
Block a user