Skip to content

feat: AuthURL, WithClient, and a driver that says it is not configured - #3

Merged
arjendevos merged 1 commit into
mainfrom
feat/auth-url-client-configured
Sep 18, 2026
Merged

arjendevos merged 1 commit into
mainfrom
feat/auth-url-client-configured

Conversation

@arjendevos

Copy link
Copy Markdown
Contributor

AuthURL is Redirect without the redirecting, for a handler that returns a
redirect response of its own rather than writing to the response writer.
It still starts the handshake. The fake answers it with its dead URL.

WithClient sets the HTTP client every call to a provider goes through: the
exchange, the refresh, the profile fetch and OpenID Connect discovery. A
traced or timed-out transport there covers all of them.

ErrDriverNotConfigured was declared and never returned. Redirect, AuthURL,
Callback and RefreshToken now return it when the driver has no client id,
no endpoints or no redirect URL, so a deployment without credentials, a
preview or a test, refuses the route instead of redirecting to half a URL.

AuthURL is Redirect without the redirecting, for a handler that returns a
redirect response of its own rather than writing to the response writer.
It still starts the handshake. The fake answers it with its dead URL.

WithClient sets the HTTP client every call to a provider goes through: the
exchange, the refresh, the profile fetch and OpenID Connect discovery. A
traced or timed-out transport there covers all of them.

ErrDriverNotConfigured was declared and never returned. Redirect, AuthURL,
Callback and RefreshToken now return it when the driver has no client id,
no endpoints or no redirect URL, so a deployment without credentials, a
preview or a test, refuses the route instead of redirecting to half a URL.
@arjendevos
arjendevos merged commit c525a73 into main Sep 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant