Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to authenticate to SOAP API #472

Closed
META-DREAMER opened this issue May 26, 2020 · 3 comments
Closed

Unable to authenticate to SOAP API #472

META-DREAMER opened this issue May 26, 2020 · 3 comments
Labels
bug Something isn't working source handler

Comments

@META-DREAMER
Copy link

I'm trying to setup the SOAP API handler to authenticate with basicAuth, but I get a 401 error even though I'm using the correct username / password:
image

.meshrc (username / password redacted):

sources:
  - name: Experian
    handler:
      soap:
        wsdl: https://creditservices-demo.experian.com.au/nextgen-aus-pds/cxf/reporting-WS?wsdl
        basicAuth:
          username: <username>
          password: <password>

Here's the WSDL in a gist: https://gist.github.com/hammadj/28885536c3335ece8354ea3278537895

@META-DREAMER
Copy link
Author

When I host the WSDL file myself, its able to successfully run GraphQL mesh, but there's only one "description" string in the schema:
image

@ardatan ardatan added bug Something isn't working source handler labels May 26, 2020
@META-DREAMER
Copy link
Author

@ardatan Did some more research, that WSDL I posted in the gist is just describing the available endpoints, but the full schema is given in this line: https://gist.github.com/hammadj/28885536c3335ece8354ea3278537895#file-experian-wsdl-L2

When it tries to load this endpoint, it gives a 401 error:
image

This makes me think that the basicAuth is being used to fetch the initial WSDL, but not the full one.

@theguild-bot theguild-bot mentioned this issue Aug 11, 2022
@ardatan
Copy link
Owner

ardatan commented Apr 4, 2023

We rewrote SOAP handler from scratch so you can use the headers pattern for authentication;
https://the-guild.dev/graphql/mesh/docs/guides/headers
Closing this issue for now. Let us know if you still have issues.

@ardatan ardatan closed this as completed Apr 4, 2023
@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
This was referenced Apr 30, 2024
This was referenced May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source handler
Projects
None yet
Development

No branches or pull requests

2 participants