Example using Basic Authentication
Closed this issue · 2 comments
rtarquini commented
Not really an issue, more of a question.
Are there any examples using basic authentication? I cannot get the client to connect to an existing GraphQL server using basic (password) authentication.
mmiller-max commented
Does the example shown here work? This is passing a header containing a bearer token.
E.g.
client = Client(
"https://myurl.com/queries",
"wss://myurl.com/subscriptions",
headers = Dict("Authorization" => "Bearer XXX"),
)
rtarquini commented
The problem seems be I can only access the graphql server via the localhost interface. So must be an configuration issue with the server implementation.