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

Struct oauth2ErrorWriter

coderd/httpmw/oauth2.go:290–290  ·  view source on GitHub ↗

oauth2ErrorWriter writes OAuth2-compliant errors for OAuth2 endpoints

Source from the content-addressed store, hash-verified

288
289// oauth2ErrorWriter writes OAuth2-compliant errors for OAuth2 endpoints
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")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected