seatgeek / api-support

A support channel for the SeatGeek Platform
9 stars 7 forks source link

[Question] Preference of query string vs. BasicAuth? #10

Closed stephenyeargin closed 8 years ago

stephenyeargin commented 8 years ago

Per the documentation:

Query String Parameters Your can add client_id and optionally client_secret to the end of any valid url to authenticate your request. Basic Auth As an alternative to the query string, you can use HTTP Basic Auth, which is [supported] in most clients, to pass your client_id and optionally your client_secret. An example using curl can be found to the right

Note that "suppoorted" was corrected in the above, and probably needs to be corrected in the docs.


I've become the maintainer of the seatgeek ruby gem recently, and want to ensure that anyone using it can continue to access the API and want to future-proof the code as much as possible.

acslater00 commented 8 years ago

@stephenyeargin

1) There are no plans to deprecate either method. Our internal api clients generally use the query string (or post data) to pass around the client id and secret, so feel free to use that for simplicity.

2) We do not currently have any plans to support custom headers, though if there were a compelling reason to do so we could probably be talked into it

3) There is no API functionality currently available to 3rd party developers that requires the secret to be passed in the request, so there is really no benefit to doing so (or not doing so).

Thanks, and let us know if you have any more questions

stephenyeargin commented 8 years ago

@acslater00 :+1: