Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Allow unauthenticated trivial GraphQL queries #972

Open

Description

@strugee

(Just sent this to GitHub Support:)

I'm writing a CLI application that makes a single GraphQL query - getting the total issue count of a particular user. This query is just about as simple as they get.

And yet, when I try to post to the GraphQL endpoint, like so:

% echo '{user(login: "strugee") {issues {totalCount}}}' | http POST https://api.github.com/graphql

I get 401 Unauthorized and a message saying that I have to be authenticated. This is really a huge bummer, honestly. I shouldn't need to be authenticated to get this information. Instead you should have sensible rate-limits like the v3 API had (I mean, this usecase would've easily stayed well within the v3 rate limits for unauthenticated requests). Unless I'm missing something?

Cheers,

AJ

Activity

  1. added
    API
    on Jul 16, 2017
  2. strugee commented on Jul 19, 2017

    @strugee
    Author

    From GitHub support today:

    Hey Alex,

    GraphQL currently requires Authentication but I will pass your request for the ability to make anonymous request to our team for consideration.

    I can't promise if or when we would add this but I'll for sure pass it along.

    Cheers
    Stacey

  3. jasonhansel commented on Jan 9, 2018

    @jasonhansel

    This would be useful for me also! Especially if the API supported CORS, so that requests could be made from within the client's browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions