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

Method writeMissingClientID

coderd/httpmw/oauth2.go:292–294  ·  view source on GitHub ↗
(ctx context.Context, rw http.ResponseWriter)

Source from the content-addressed store, hash-verified

290type oauth2ErrorWriter struct{}
291
292func (*oauth2ErrorWriter) writeMissingClientID(ctx context.Context, rw http.ResponseWriter) {
293 httpapi.WriteOAuth2Error(ctx, rw, http.StatusBadRequest, codersdk.OAuth2ErrorCodeInvalidRequest, "Missing client_id parameter")
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")

Callers

nothing calls this directly

Calls 1

WriteOAuth2ErrorFunction · 0.92

Tested by

no test coverage detected