Chad_Markle | 2022-12-20 23:17:02 UTC | #1
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:
- 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.
- 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] accesstoken = '' clientcredentials = 'xxxxxxxxxxxxxxxxxxxxxxx' clientsecret = '' environment = 'usw2.pure.cloud' oauthtokendata = '' redirecturi = 'http://localhost:8080' secureloginenabled = false
[OrgB] accesstoken = '' clientcredentials = 'yyyyyyyyyyyyyyyyyyyyyyy' clientsecret = '' environment = 'usw2.pure.cloud' oauthtokendata = '' redirecturi = 'http://localhost:8080' secureloginenabled = 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.
system | 2023-01-19 23:17:20 UTC | #2
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 17721