Skip to content

Commit 7ea1a1a

Browse files
JimmyAppeltJohnnyCrazy
authored andcommitted
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.
1 parent 7e6cdf5 commit 7ea1a1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SpotifyAPI/Web/Auth/WebApiFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Task<SpotifyWebAPI> GetWebApi()
3535
{
3636
var authentication = new ImplicitGrantAuth
3737
{
38-
RedirectUri = $"{_redirectUrl}:{_listeningPort}",
38+
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
3939
ClientId = _clientId,
4040
Scope = _scope,
4141
State = _xss

0 commit comments

Comments
 (0)