Question on Implicit Grants

I am setting up the config.toml file for the CLI to manage multiple profiles for use with multiple Genesys Cloud orgs and I'm using implicit grants. I have multiple orgs in the same region and I can't figure out how to switch between them. Here is what I am experiencing:

  1. I run a query against Org A. Something like gc organizations me get -p OrgA. I log in via SSO (Okta) and the command processes successfully.
  2. Then I run the query against Org B, and I'm automatically authneticated. gc organizations me get -p OrgB returns data from Org A instead of Org B.

How do I get the results from Org B?

Here is a sample of the data from my config.toml
[OrgA]
access_token = ''
client_credentials = 'xxxxxxxxxxxxxxxxxxxxxxx'
client_secret = ''
environment = 'usw2.pure.cloud'
oauth_token_data = ''
redirect_uri = 'http://localhost:8080'
secure_login_enabled = false

[OrgB]
access_token = ''
client_credentials = 'yyyyyyyyyyyyyyyyyyyyyyy'
client_secret = ''
environment = 'usw2.pure.cloud'
oauth_token_data = ''
redirect_uri = 'http://localhost:8080'
secure_login_enabled = false

I've been logging into the Web interface for the org and logging out and that seems to reset my token, but I think I'm missing something.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.