mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 16:06:27 +00:00
300c51db3c
Fixed capitalization, spelling, grammar, added gender-neutral language
24 lines
1.1 KiB
Markdown
24 lines
1.1 KiB
Markdown
---
|
|
id: auth_introduction
|
|
title: Introduction
|
|
---
|
|
|
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
|
|
Spotify does not allow unauthorized access to the API. Thus, you need an access token to make requests. This access token can be gathered via multiple schemes, all following the OAuth2 spec. Since it's important to choose the correct scheme for your usecase, make sure you have a grasp of the following terminology/docs:
|
|
|
|
- OAuth2
|
|
- [Spotify Authorization Flows](https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow)
|
|
|
|
Since every auth flow also needs an application in the [Spotify dashboard](https://developer.spotify.com/dashboard/), make sure you have the necessary values (like `Client Id` and `Client Secret`).
|
|
|
|
Then, continue with the docs of the specific auth flows:
|
|
|
|
- [Client Credentials](client_credentials.md)
|
|
- [Implicit Grant](implicit_grant.md)
|
|
- [Authorization Code](authorization_code.md)
|
|
- [PKCE](pkce.md)
|
|
- [(Token Swap)](token_swap.md)
|
|
|
|
<img alt="auth comparison" src={useBaseUrl('img/auth_comparison.png')} />
|