Trying to set up a long-lived token for our nightly deployment scripts. The standard OAuth2 client credentials flow works fine in the browser, but the token expires in an hour. Need something that sticks around for the pipeline run.
Tried hitting the resource owner password grant endpoint directly from the script. Getting a 401 back.
{
"grant_type": "password",
"username": "admin@company.com",
"password": "secret123",
"client_id": "my_client_id"
}
Is there a different endpoint for generating long-lived tokens? The docs are vague on this part.