Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.96 KB

authentication.rst

File metadata and controls

53 lines (42 loc) · 1.96 KB

Authentication

For some methods of :class:`pytwitcherapi.TwitchSession`, the user needs to grant pytwitcher authorization. Twitch Authentication is based on OAuth. We use the implicit grant workflow. In short, the user visits a website. Has to login, and allow pytwitcher. Twitch will redirect him to :data:`pytwitcherapi.constants.REDIRECT_URI`. In the url fragment of that redirection, one can find the token we need. To make it simple for the user, here is what should be done for authentication: