Obtain an OAuth2 access token using client credentials grant. The client_id is the agent’s DID and client_secret is obtained from oauth_credentials.json.
Credentials location: .bindu/oauth_credentials.json
Grant type: client_credentials
Scopes:
OAuth2 grant type
client_credentials Agent DID (from oauth_credentials.json)
"did:bindu:your_email_at_example_com:research_agent:9e84d316dd68482683ca3b3efc9c5500"
Client secret (from oauth_credentials.json)
"45zleygc46gaAnLOkzMvsQ0Ui5D9fSH8FQQFCD0DwP8"
Space-separated list of scopes
"openid offline agent:read agent:write"
Access token granted
The OAuth2 access token (JWT)
Token type (always "bearer")
"bearer"
Token expiration time in seconds
3599
Space-separated list of granted scopes
"openid offline agent:read agent:write"