(ctx context.Context, rw http.ResponseWriter)
| 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") |
| 294 | } |
| 295 | |
| 296 | func (*oauth2ErrorWriter) writeInvalidClientID(ctx context.Context, rw http.ResponseWriter, _ error) { |
| 297 | httpapi.WriteOAuth2Error(ctx, rw, http.StatusUnauthorized, codersdk.OAuth2ErrorCodeInvalidClient, "The client credentials are invalid") |
nothing calls this directly
no test coverage detected