Skip to content

Commit d8e3238

Browse files
committed
Made port variable and adapted example to use port 8000
1 parent 9ac735f commit d8e3238

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

SpotifyAPI.Example/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[assembly: AssemblyTitle("SpotifyAPI.Example")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("HEAVEN KILLERS RELEASE GROUP")]
11+
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("SpotifyAPI.Example")]
13-
[assembly: AssemblyCopyright("Copyright © HEAVEN KILLERS RELEASE GROUP 2015")]
13+
[assembly: AssemblyCopyright("Copyright © 2015")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

SpotifyAPI.Example/WebControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public WebControl()
2929
_savedTracks = new List<FullTrack>();
3030
_auth = new ImplicitGrantAuth
3131
{
32-
RedirectUri = "http://localhost",
32+
RedirectUri = "http://localhost:8000",
3333
ClientId = "26d287105e31491889f3cd293d85bfea",
3434
Scope = Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate | Scope.UserLibrarayRead | Scope.UserReadPrivate | Scope.UserFollowRead | Scope.UserReadBirthdate,
3535
State = "XSS"
@@ -130,7 +130,7 @@ private List<SimplePlaylist> GetPlaylists()
130130

131131
private void authButton_Click(object sender, EventArgs e)
132132
{
133-
_auth.StartHttpServer();
133+
_auth.StartHttpServer(8000);
134134
_auth.DoAuth();
135135
}
136136
}

SpotifyAPI/Web/Auth/AutorizationCodeAuth.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ private String GetUri()
8787
/// <summary>
8888
/// Start the internal HTTP-Server
8989
/// </summary>
90-
public void StartHttpServer()
90+
public void StartHttpServer(int port = 80)
9191
{
92-
_httpServer = new SimpleHttpServer(80, AuthType.Authorization);
92+
_httpServer = new SimpleHttpServer(port, AuthType.Authorization);
9393
_httpServer.OnAuth += HttpServerOnOnAuth;
9494

9595
_httpThread = new Thread(_httpServer.Listen);

SpotifyAPI/Web/Auth/ImplicitGrantAuth.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ private String GetUri()
4444
/// <summary>
4545
/// Start the internal HTTP-Server
4646
/// </summary>
47-
public void StartHttpServer()
47+
public void StartHttpServer(int port = 80)
4848
{
49-
_httpServer = new SimpleHttpServer(80, AuthType.Implicit);
49+
_httpServer = new SimpleHttpServer(port, AuthType.Implicit);
5050
_httpServer.OnAuth += HttpServerOnOnAuth;
5151

5252
_httpThread = new Thread(_httpServer.Listen);

0 commit comments

Comments
 (0)