mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Update WebApiFactory.cs (#153)
This could fix the ImplicitGrantAuth for http paths without breaking anything. ´TrimEnd` is there for when there is no path (the builder will add a `/` which will make the callback url invalid otherwise.
This commit is contained in:
parent
7e6cdf563a
commit
7ea1a1af48
@ -35,7 +35,7 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
{
|
{
|
||||||
var authentication = new ImplicitGrantAuth
|
var authentication = new ImplicitGrantAuth
|
||||||
{
|
{
|
||||||
RedirectUri = $"{_redirectUrl}:{_listeningPort}",
|
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
|
||||||
ClientId = _clientId,
|
ClientId = _clientId,
|
||||||
Scope = _scope,
|
Scope = _scope,
|
||||||
State = _xss
|
State = _xss
|
||||||
|
Loading…
Reference in New Issue
Block a user