how to get access token using grant_type:client_credentials
I am trying to fetch the access token using the grant_type = client_credentials. But I am getting an error "invalid client". Can anyone help how to get the access token by using grant_type client_credentials. Do we need any permission to get the grant_type as client credentials?
Below is the snippet which i am trying to hit the token usint Python.
token_url = 'https://ims-na1.adobelogin.com/ims/token/v1'
payload = {'grant_type': 'client_credentials'}
response = requests.post(url=token_url, auth=(client_id,client_secret), data=payload)
print(response.text)
Please provide the solution to resolve it. Also, please let me know the validity of access_token once we generated.
