Skip to main content
Version: 6.X

CLI - Custom HTML

Description

An example to show how you can display your own HTML resource after the user went through the authentication process of either Implicit Grant, Authorization Code or PKCE.

CLI Custom HTML Example

Run it

Before running it, make sure you created an app in your spotify dashboard and https://localhost:5001 is a redirect uri of it.

# Assumes linux and current working directory is the cloned repository
cd SpotifyAPI.Web.Examples/Example.CLI.CustomHTML
dotnet restore

SPOTIFY_CLIENT_ID=YourClientId SPOTIFY_CLIENT_SECRET=YourClientSecret dotnet run
# A browser window should appear