Francesco Fusco Posted September 26, 2019 Share Posted September 26, 2019 How can I obtain the client secret to consume Mashery 3.0 API like so: curl -k -v -i -u : 'https://api.mashery.com/v3/token' -d 'grant_type=password&username=&password=&scope=' I was able to find my client ID but there was no way I could find the client secret. Thanks, Francesco. Link to comment Share on other sites More sharing options...
Aadesh Solanki Posted October 9, 2019 Share Posted October 9, 2019 Hi Francesco, Step 01 : For client_secret, first make sure that under the required API package, the 'Generate Shared Secrets' property is Enabled. For example if my API package name is 'xyz', then under : "API Packages-> xyz-> Key Properties" enable the 'Generate Shared Secrets' property. Step 02: Once the above step is completed, generate the package key. Step 03 : After the package key is generated for your required application, advance to "Manage -> Package Keys". Click on the key generated under 'Step 02'. There you would find a propertynamed 'Secret' for that key. That Secret is the required client_secretto consumeyour mashery API. Thanks & Regards, Aadesh Link to comment Share on other sites More sharing options...
Francesco Fusco Posted October 9, 2019 Author Share Posted October 9, 2019 Hi Aadesh, Sorry but what I need is to consume Mashery's APIs themselves not APIs configured in Mashery. So regarding the step 01 you mentioned, honestly I would not know under which API package should I go to enable the "Generate Shared Secrets" flag. Thanks, Francesco. Link to comment Share on other sites More sharing options...
Francesco Fusco Posted October 9, 2019 Author Share Posted October 9, 2019 Hi Aadesh, Sorry but what I need is to consume Mashery's APIs themselves not APIs configured in Mashery. So regarding step 01 you mentioned, honestly I would not know under which API package should I go and enable the "Generate Shared Secrets" flag. Thanks, Francesco. Link to comment Share on other sites More sharing options...
Ankit Golwalkar Posted October 24, 2019 Share Posted October 24, 2019 HelloFrancesco, You should be able to see the shared secret on the Mashery developer portal after sigining in. (https://developer.mashery.com/apps/mykeys) It will list the API key you requested and the associated secret as well. Thanks and Regards Ankit Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now