Skip to content

ustream/hashlock-dotnet

Repository files navigation

IBM Cloud Video Viewer Authentication Setup Demo

Requirements

Installation

  1. Set up channel authentication for your channel(s) on Channels/Authentication dashboard
    • Secret Key: Some random string, this secret key is used for signing and validating authorization data
    • URL for the entry point of the authentication flow: http://127.0.0.1:5000/Home/Authorization This is the end point where you can authorize your users to the content and then generate the signed hash data. Set authentication
  2. Set Secret Key in HomeController.cs
    ...
        private const string hashSecret = "TOPSECRET";
    ...
  1. Set a video id in HomeController.cs which will be used in this example. (This video needs to be on the same channel that was set up in Step 2.)
    ...
        private const int videoId = 1;
    ...

Video ID

  1. Run demo on localhost
ASPNETCORE_ENVIRONMENT=Development dotnet run
  1. Open demo in your browser: http://127.0.0.1:5000/ (Recommended to use incognito mode)

Hint

Resources

IBM Cloud Video Viewer Authentication API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published