One key aspect is to support integration tests for our permission/user-consent flow, which can be simulated on sandbox environment without end-user interaction. Please note that the sandbox will not provide access to production systems.
Get in touch to get your sandbox client credentials.
Let us know which permission flow you want to test. For the code grant flow, please provide us with a redirectURL.
Once you obtained the credentials, you may want to download the Postman collection below to test our custom flow.
For the Code grant flow, please provide us with a redirect URL to your staging environment.
SMA provides you with a Postman collection (.json file) you may want to download to quickly enable your custom flow test on our sandbox environment. Once imported, your will only need to enter the sandbox client credentials provided to you in the Body of the “Token ClientCredential” and “Token Refresh”-requests. You will also find examples of requests for the Monitoring-API, BasicReporting-API, GeoForecast-API and GridControl-API to use after successful permission requests.
a. If you only execute Step1-request and use the Client-Token on the Monitoring-API before execution of Step2/3 (user-consent requests), the Monitoring-API response will be “empty” as no resource owner has allowed to provide data to your application.
b. Your application can re-request the user consent for a resource owner at any time. This will also be possible if there is an existing valid consents in place, e.g. in order to request access to an additional system which has been deployed after the initial consent has been given (equals: change of resource scope). Or if an initial request eMail has been lost and the resource owner asks for a new request eMail.
c. To use the example requests you have to enter the sandbox client credentials provided to you in the body of the “Token Request (Prerequisite)”. You must have the access rights for the belonging API. You can run the examples in the recommended order to get values for the variables. But you can also set individual values for the collection.