Add more specific error messages to HTTP signature verification (#21617)
* Return specific error on failure to parse Date header * Add error message when preferredUsername is not set * Change error report to be JSON and include more details * Change error report to differentiate unknown account and failed refresh * Add tests
Showing
- app/controllers/concerns/signature_verification.rb 8 additions, 8 deletionsapp/controllers/concerns/signature_verification.rb
- app/services/activitypub/fetch_remote_actor_service.rb 1 addition, 0 deletionsapp/services/activitypub/fetch_remote_actor_service.rb
- spec/controllers/concerns/signature_verification_spec.rb 100 additions, 7 deletionsspec/controllers/concerns/signature_verification_spec.rb
Loading
Please register or sign in to comment