Creating a Test App
The following steps will guide you through creation of a test app in the sandbox.
Authenticate & Select Accounts
Task | Description |
|---|---|
Review technical requirements. | See: Requirements. |
Register for sandbox access. | To register, you must provide Akoya with a redirect URI for use with your sandbox test app. Akoya will provide you with a client Id and secret for your app. |
Securely store client_id and secret | Every app has a unique client Id and secret. Treat them as secure information and store them securely. |
UX - Provider popup or redirect | Integrate into your existing provider selection UI or build popup/ redirect flow for the consumer to select the data provider(s) they'd like to connect with your app. Upon consumer selection, initiate consent and authentication with mikomo. See: Native App Integrations. |
Use sandbox data for implementation and testing | The sandbox includes mikomo with several test users that you can use for end-to-end implementation and testing. Use these test accounts for the remaining implementation steps. See: Introduction to Sandbox. |
Authorization grant | After authentication and authorization, Akoya will return the consumer to your redirect URI with an authorization grant code in the URL with the parameter “code=”. Use this authorization code to request a set of tokens for this consumer. See: Authorization Code. |
Store x-akoya-interaction-id | Akoya returns an interaction id in every response header. Retain the id with logs for support and error tracking. |
Id and refresh token generation | Exchange authorization code for ID and Refresh token See: Token API reference and the Token Overview explainer. |
Store token | Use your current secure token storage or implement a way to store each consumer's unique tokens. |
Token revocation | Implement a way for the consumer to remove access to their data provider account(s). See Revoke Token. |
Error cases | Code for Authorization or Token errors. Develop UX for errors, timeouts, and reauthentication. See Authentication Errors and Token API errors. |
Validate authentication | Validate UX for account selection, consent, ID/Refresh Token for new and existing users. |
Obtain Data
Task | Description |
|---|---|
Store x-akoya-interaction-id | Every returned response header contains an interaction id. Retain the id with logs for support and error tracking. |
Accounts | Using the id_token retrieved in the Id and refresh token step for a test user, make a call for data. |
Transactions | Using the id_token retrieved in the Id and refresh token step for a test user, and the account Id retrieved in the Accounts step, make a call for transaction data. |
Error cases | Develop UX for errors, timeouts, and reauthentication for API errors. For more information, see Errors. |
Validate data | Validate use and display of data in your own systems and UI. |