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