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:
Jim 2017-06-10 21:50:16 +02:00 committed by Jonas Dellinger
parent 7e6cdf563a
commit 7ea1a1af48

View File

@ -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