MCPcopy Index your code
hub / github.com/coder/coder / writeInvalidClientID

Method writeInvalidClientID

coderd/httpmw/oauth2.go:296–298  ·  view source on GitHub ↗
(ctx context.Context, rw http.ResponseWriter, _ error)

Source from the content-addressed store, hash-verified

294}
295
296func (*oauth2ErrorWriter) writeInvalidClientID(ctx context.Context, rw http.ResponseWriter, _ error) {
297 httpapi.WriteOAuth2Error(ctx, rw, http.StatusUnauthorized, codersdk.OAuth2ErrorCodeInvalidClient, "The client credentials are invalid")
298}
299
300func (*oauth2ErrorWriter) writeClientNotFound(ctx context.Context, rw http.ResponseWriter) {
301 httpapi.WriteOAuth2Error(ctx, rw, http.StatusUnauthorized, codersdk.OAuth2ErrorCodeInvalidClient, "The client credentials are invalid")

Callers

nothing calls this directly

Calls 1

WriteOAuth2ErrorFunction · 0.92

Tested by

no test coverage detected