mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Made sure the correct scopes are requested
This commit is contained in:
parent
ff9d03ffb0
commit
9431bb44b5
@ -7,6 +7,7 @@ using SpotifyAPI.Web.Http;
|
|||||||
using SpotifyAPI.Web;
|
using SpotifyAPI.Web;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using static SpotifyAPI.Web.Scopes;
|
||||||
|
|
||||||
namespace CLI
|
namespace CLI
|
||||||
{
|
{
|
||||||
@ -66,7 +67,7 @@ namespace CLI
|
|||||||
|
|
||||||
var request = new LoginRequest(clientId, LoginRequest.ResponseType.Code)
|
var request = new LoginRequest(clientId, LoginRequest.ResponseType.Code)
|
||||||
{
|
{
|
||||||
Scope = new List<string> { "user-read-email", "user-read-private" }
|
Scope = new List<string> { UserReadEmail, UserReadPrivate, PlaylistReadPrivate }
|
||||||
};
|
};
|
||||||
|
|
||||||
Uri url = _server.BuildLoginUri(request);
|
Uri url = _server.BuildLoginUri(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user