|
```bash
# 1. Find the service creds on Cockpit
# 2. cf target -o demo-prod -s api
# 3. cf create-service-key orders-srv bruno-key
# 4. cf service-key orders-srv bruno-key
# 5. Copy clientid / clientsecret / url
# 6. curl -X POST $URL/oauth/token \
# -u $CLIENT_ID:$CLIENT_SECRET \
# -d grant_type=client_credentials
# 7. Copy access_token
# 8. Paste into environments/dev.bru
# 9. bru run --env dev
# 10. Token expires → goto 6
```
|
```bash
bruno use ap10/demo-prod/api/orders-srv
bruno run --env dev
```
*That's it. Token is cached, refreshed on expiry, written back to the env file, and injected automatically.*
|