Getting access token for a Server Application - Invalid client
I have followed the instructions in the link https://support.panopto.com/s/article/oauth2-for-services for Server application using client credentials.
In postman i tried a POST request to the Panopto Oauth2 token endpoint. https://<server>/Panopto/oauth2/connect/token with request payload type as Url encoded and the key value as following grant_type as “client_credentials” and the scope as “api”.
In the header have added the Key as Authorization and value as "Basic Base64Encoded(<ClientId>:<ClientSecretValue>)". The client Id used to construct the auth token here is a guid I see in the api key on panopto portal.
I am getting 400 response with below error.
Authorization: Basic Base64Encoded(<ClientId>:<ClientSecretValue>)
Accept-Encoding: gzip, deflate, br
- scope: "api"
- grant_type: "client_credentials"