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.
Options

Redirect issue with Python 3 example api & oauth2 to local host

I have been using the github https://github.com/Panopto/panopto-api-python-examples folders cli with some code that worked fine from a remote desktop PC in our datacentre.

Having come back recently, that code no longer runs, nor does the sample.py code in the folders-cli folder work.

The browser (chrome) opens up the panopto website as usual, with a redirect to local_host, but the chrome browser never does the redirect to save the token.

The browser tab says "Error"

The api client I created had disappeared (I assume expired) so I create a new Server-side Web Application api client for the same user (who happens to be an administrator) but the I get the same error.

Has there been a change to chrome or the api to stop redirects to local_host? Or to web api's to admin users? Or am I off track?


The url is

Opening the browser for authorization: https://myserver.cloud.panopto.eu/Panopto/oauth2/connect/authorize?response_type=code&client_id=some-value&redirect_uri=http%3A%2F%2Flocalhost%3A9127%2Fredirect&scope=openid+api+offline_access&state=somecodevalue

HTTP server started at port 9127. Waiting for redirect.

The code then sits there and the only sign of error is the error in the browser tab

Tagged:

Best Answer

  • Options
    Answer ✓

    Thanks - just to confirm what I had done was put the right redirect url onto the wrong client id.

Answers

  • Options

    Tried the same setup in Postman using https://support.panopto.com/s/article/How-to-use-Postman-with-the-Panopto-REST-API

    Getting the same error

    Tried setting up a pure API client (not associated with a user) - same error


    Error is:

    Chrome browser opens up, browser tab says "Error", redirect doesn't appear to happen.


    So I set the redirect url to allowed https%3A%2F%2Foauth.pstmn.io%2Fv1%2Fcallback and https://oauth.pstmn.io/v1/Fcallback but still getting error in the browser tab

  • Options
    Kevin BaumKevin Baum Panopto Employee

    Hi Brian,

    We may need some additional information in order to look into this further for you. Can you please have your POC open a support ticket with Panopto? If you need any assistance with opening a support ticket, please message @Caitlin McCabe .

    Thanks,

    Kevin

  • Options

    Ticket is 00862124 and has been open for a while in "Needs Attention" priority P3 - can you escalate please.

  • Options

    Hi @Brian Merritt,

    I have reached out to Support regarding your ticket. Please keep an eye out for correspondence from our team.

    Best wishes,

    Cait

  • Options

    Hi,

    Has there been any update regarding this issue. Tried out the api examples today and I'm running into the same issue as described here.


    Thanks

  • Options

    Hi @Kristof Keppens,

    I see that you were able to connect with our Support team today regarding this; however, if you are still experiencing issues, please let me know and I can open a ticket with Support so that you may continue to work with them.

    If you have any additional questions, please let us know - we're always happy to help!

    Best wishes,

    Cait McCabe

  • Options

    Hi @Caitlin McCabe ,

    Still having this issue, the code examples don't work and open a browser tab with title "error".

  • Options

    Sorry not to have fed the solution back.

    The API I had originally set up in Python didn't require a callback url, but after a gap of time when I ran the code again I hit this problem.

    In my case, writing from a PC with python, I noticed the API request had a callback url of

    http://localhost:9127/redirect

    To be safe I also added the url below

    http%3A%2F%2Flocalhost%3A9127%2Fredirect

    That worked first time because I already had the credentials setup and working


    Your callback url may not be the same of course, but it should be findable

  • Options

    Hi @Kristof Keppens,

    Please let me know if you want to try Brian's solution, above, or if I should proceed with opening a Support ticket on your behalf.

    Best wishes,

    Cait

  • Options

    Hi @Caitlin McCabe , still isn't working. Url was allready url encoded, so this isn't the issue. Been trying to use the api with postman now, there it does open the pop-up for authentication, but then I get a "Error: invalid_client" error for some reason.

  • Options

    Hi @Kristof Keppens,

    I will reopen your Support ticket on this so that our team can investigate. Please keep an eye out for correspondence from them.

    Best wishes,

    Cait

Sign In or Register to comment.