Panopto API 003: Security

Return to the Panopto API index page

If we communicate with the server, we should be checking that it is a valid and secure server.

The following code is taken from the Panopto github:

Add the following name spaces to the top of the application you made in the previous posts

Add this to the top of the application, just above static void Main()

Then add the following to the bottom of the application. Within class Program but outside of static void Main()

With this code you can call

to ensure that the server certificate is valid. We will use this function in all our API calls.

Our full code now looks like this

Return to the Panopto API index page


  1. FirstGay

    I see you don’t monetize your site, don’t waste your traffic, you can earn additional bucks every month because
    you’ve got hi quality content. If you want to know how to make
    extra $$$, search for: Mrdalekjd methods for $$$

    5 years ago
  2. David Norris

    This code doesn’t ensure the server’s certificate is valid. In fact, it has the opposite effect: it overrides the default certificate validation logic in .NET and implements a custom validator which approves all certificates unconditionally by returning true on line 55. This technique is described here:

    4 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *