Skip to content

Create Apollo Link for Captcha handling

Lukas Eipert requested to merge leipert-add-apollo-captcha-link into master

What does this MR do?

Create Apollo Link for Captcha handling

This implementation of an Apollo Link is similar to our Axios Captcha interceptor. The Link checks whether a top-level error in the GraphQL response hints towards the need of solving a captcha. If the captcha is solved correctly, the mutation will be send again, but this time the solution to the CAPTCHA is added to the HTTP headers.

Note: This MR just adds the Apollo Link to our code base without utilizing it. It will be utilized in: !56190 (merged)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Lukas Eipert

Merge request reports

Loading