Skip to content
Snippets Groups Projects

Add DPoP checks in GraphQL and API requests

Merged Ameya Darshan requested to merge ameya-dpop-2 into master
All threads resolved!
Compare and Show latest version
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -59,14 +59,14 @@
request.headers[:HTTP_PRIVATE_TOKEN] = personal_access_token.token
allow(subject).to receive(:execute) do
raise Gitlab::Auth::DpopValidationError, 'DPoP is not enabled for the user'
raise Gitlab::Auth::DpopValidationError, 'DPoP error'
end
post :execute
expect(json_response).to include(
'errors' => include(
a_hash_including('message' => 'DPoP validation error: DPoP is not enabled for the user')
a_hash_including('message' => 'DPoP validation error: DPoP error')
)
)
expect(response).to have_gitlab_http_status(:unauthorized)
Loading