For Individual Traders
Registration as a Individual Trader:¶
To register as a Vendor, Please visit web.gopocket.in/developers
- Login using your credentials.
- In the Apps sections, Create a new application.
- Fill out the mandatory details, URL and Postback URL will be localhost.
- Click "Save" to create a new app.
- An App Code (appCode) and API Secret (apiSecret) will be provided to the Individual Trader. This code is important and Confidential. DO NOT Share with anyone outside your organization.
- The App will be activated by pocket Admin team after reviewing the details given by the Individual Trader. The Individual Trader API access will be provided after necessary approval.
Implementation of SSO:¶
- During User login, the Individual Trader should redirect the pocket user to https://web.gopocket.in/?appcode= along with the App Code as shown here in the url.
- User will be asked to login with their pocket credentials.
- After successful login, the user will be redirected to the URL provided by the Individual Trader (Provisions to provide / update the Redirect URL is provided in the Developers Login) along with User Authorization token (authCode) and User ID (userId).
- The Individual Trader will save the user authCode, UserId (userId) along with apiSecret to create a checkSum, which is the SHA-256 hash of userId + authCode + apiSecret.
- Individual Trader should send this checkSum to the URL : https://web.gopocket.in/am/sso/vendor/getUserDetails to get the User Session (userSession), which can be used to access all API end points.