Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

Help Needed with OAuth2 Implementation for User-Based Server Application

Hi everyone,

I'm trying to implement section 2.1 from the Panopto OAuth2 documentation using Python, but I'm encountering an error. Below is the attached code I'm using:

However, I keep getting the following error:

{

"statusCode": 400,

 "body": "{\"error\":\"invalid_client\"}"

}

I've verified that the username and password are correct, and I'm using the correct token URL. The same credentials when used on SOAP API works. Could anyone help me understand what might be causing this error and how to resolve it?

Thanks in advance!

Tagged:

Answers

  • Mackenzie BusbyMackenzie Busby Administrator

    Hi Team, Venkatesh sent an update regarding this case (see below). Can you please offer some guidance?

    "With the help of a user post in the Panopto community forum, I was able to get the access token. The documentation was somewhat misleading, but the forum discussion here provided the necessary clarification.
    Auth for new RESTful API (2019-09-16) — Panopto Community

    Once I obtained the token, I successfully downloaded captions and thumbnails. However, I encountered an issue when trying to download the video from the URL. Despite using the same authentication token and cookies, I received a 403 Forbidden error. 

    Could you please assist us in understanding why this might be happening and how we can resolve it?"

  • Adis HrnjicaAdis Hrnjica Whiz Kid

    Hi Venkatesh,

    Can you please let me know which exact REST API endpoint you are using so I can take a closer look at this?

    Thanks in advance,

    Adis

  • Hi Adis,

    I am trying to use below endpoint. Also, is there anyway we can get the modified/updated date for a particular session ?

    /Panopto/api/v1/sessions/{session_id}

    Thanks,

    Venkatesh

  • Adis HrnjicaAdis Hrnjica Whiz Kid

    Hi Venkatesh,

    We cannot currently get that information from the REST API for the particular session.

    For this particular session can you download video on the web interface?

    Also remember you need to be logged in so you can download a video with the URL. If you are using code to try to download, again user needs to be authenticated. If this is the case I need sample of the code to see how are you trying to perform the download.

    I hope this helps.

    Thanks,

    Adis

Sign In or Register to comment.