generate OAUTH token if the apiproduct has access to environment

Not applicable

Currently we have multiple environments created in an org( Sandbox and production )

We wanted to limit creating the oauth token only if product has access to the environment.

0 2 108
2 REPLIES 2

When you create/edit the product, you can select the environments using the tick boxes. If you try to generate a token for a product in the wrong environment you should see an error. If you have multiple products associated to the developer app, then the token will only work for the products in that environment.

Hope this helps!

Even though we have that particular environment not selected . we can still create a token by hitting the environment (not selected ) with client credentials .