justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 380 forks source link

Authentication on tvOS #449

Closed gdavis closed 8 years ago

gdavis commented 8 years ago

Following the API documentation regarding using OAuth2, it seems we are unable to authenticate a user using tvOS since there is no web view available. How do we go about authenticating users for requests under this new platform? Are there any legacy APIs we can make use of to support this?

belthesar commented 8 years ago

Most devices of this nature use a discovery service for this. The app checks in with the service, which issues it a short serial number. On a browser-enabled device, this code is entered into a portal that you are authenticated to, and that builds the OAuth trust.

On Fri, Oct 16, 2015 at 11:06 AM, Grant Davis notifications@github.com wrote:

Following the API documentation regarding using OAuth2, it seems we are unable to authenticate a user using tvOS since there is no web view available. How do we go about authenticating users for requests under this new platform? Are there any legacy APIs we can make use of to support this?

— Reply to this email directly or view it on GitHub https://github.com/justintv/Twitch-API/issues/449.

gdavis commented 8 years ago

Thanks for the reply @belthesar. Are you referring to a solution similar to what this article describes? http://stephenradford.me/oauth-login-on-tvos/

DallasNChains commented 8 years ago

OAuth login is the correct way to go about this. In the future, I would suggest asking questions like this in the Twitch Developer Forums.