Creating an API scan using a Postman collection
If you have a Postman Collection of requests to your web API, you can import it and use it as the basis for a scan by using the API scan configuration wizard or the REST API.
Before you begin
- Backup your site before scanning.
- If you have not yet done so, Create an application for your scans.
- Verify with ASoC that you have permission to scan the domain (see Verifying a domain), or you can authorize domains without verification using Domain management.
- If your site is not available on the Internet, and an AppScan Presence does not yet exist on the server: Creating the AppScan Presence.
- If scanning a live production site, refer first to What changes should I make when scanning a live production site?
- If the web API requires authorization, the authorization request must include valid
credentials (API Key, Basic Auth., OAuth 2 refresh token, or other fixed token and
passwords). The authorization request must be one of the first requests in the collection.
By default, AppScan examines the first seven requests for the authorization request.Limitation:Authentication methods that require a user to be present, such as OAuth2 with Prompt User, are not supported. However, you can use OAuth2 with an offline grant type that uses a refresh token (also known as a service token).
About this task
Procedure
What to do next
- You can view the status of the scan on the Scans and sessions page.
Using REST API
You can use the Postman collection through the REST API.
