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.

Get Video Title

Hello,

I am building a script to get a video ID and return its title, but I'm stuck on authentication.

I created a User-Based Server Application API client. I also created an internal Panopto user account with a password (not through SSO). When I try to get an OAuth2 token using the password grant type, I get this error: "invalid_grant" with message "Invalid username or password."

I can log into Panopto directly with this account using the same credentials, so the account and password work. But the API rejects them.

Here's what I'm sending:

POST https://clu.hosted.panopto.com/Panopto/oauth2/connect/token

Parameters:

  • grant_type: password
  • client_id: [redacted]
  • client_secret: [redacted]
  • username: [redacted]
  • password: [redacted]
  • scope: api

Is the User-Based Server Application type configured correctly to support password grant on our instance? What could cause this error if the credentials are valid?

Thank you.

Tagged:

Answers

  • Adis HrnjicaAdis Hrnjica Whiz Kid

    Hi Milad,

    Depends on your script. Does this works with Postman?

    Thanks,

    Adis

  • Hello Adis,

    I don't use Postman; instead, I use the terminal (curl), and it doesn't work.

Sign In or Register to comment.