• Hugo Ortiz's avatar
    Handle MissingPersonalAccessTokenError on Go middleware · 0ebc7488
    Hugo Ortiz authored
    The user authentication performed by the Go middleware may throw a
    Gitlab::Auth::MissingPersonalAccessTokenError. Respond to this error
    with 401 Unauthorized instead of letting it bubble up and end up as a
    500 Internal Server Error response.
    
    Changelog: changed
    0ebc7488
go_spec.rb 9.89 KB