oauth2ErrorWriter writes OAuth2-compliant errors for OAuth2 endpoints
| 288 | |
| 289 | // oauth2ErrorWriter writes OAuth2-compliant errors for OAuth2 endpoints |
| 290 | type oauth2ErrorWriter struct{} |
| 291 | |
| 292 | func (*oauth2ErrorWriter) writeMissingClientID(ctx context.Context, rw http.ResponseWriter) { |
| 293 | httpapi.WriteOAuth2Error(ctx, rw, http.StatusBadRequest, codersdk.OAuth2ErrorCodeInvalidRequest, "Missing client_id parameter") |
nothing calls this directly
no outgoing calls
no test coverage detected