Configure interactive browser authentication for a target
Changed onPUT /targets/<pk>/browser-authentication/ (BAW-1997)
Dedicated endpoint for interactive browser-authentication configuration on Postman/Bruno API targets. Gated by allow_interactive_browser_login at the permission layer; the request body is delegated to APIScanSettingsSerializer (single source of truth for the browser-auth field validators).
Mirrors the per-auth-mode pattern used by PostmanAuthenticationView / BrunoAuthenticationView rather than routing on payload-key presence inside TargetApiScanSettingsView — that dual-purpose shape produced a discriminator-less oneOf on request+response, forced an oasdiff severity downgrade, and made BrunoEntitled inspect the request body. Splitting them removes all three.
Request
- Base URLhttps://api.probely.com
- URLhttps://api.probely.com/targets/{id}/browser-authentication/
- AuthAPI key in header Authorization
Path parameters
Request body
Type of schema that defines the API:
- openapi - OpenAPI schema.
- postman - Postman collection.
- bruno - Bruno collection.
- graphql - GraphQL schema.
Method to obtain the API schema. If not set, defaults to 'url' if api_schema_url is provided, otherwise 'file'.
- url - Fetch schema from URL
- file - Upload schema file
- introspection - Auto-discover via GraphQL introspection
- folder - Bruno collection folder
- zip - Bruno ZIP upload
- repository - Generate schema from source code repository
Format of the payload:
- application/json - The payload is in JSON format in the request body.
- application/x-www-form-urlencoded - The payload is encoded in the request URL.
- application/graphql - The payload is a raw GraphQL query string.
URL to make the authentication request to the API.
The maximum length is 2048 characters.
Payload to send in the authentication request.
The maximum length is 4096 characters.
Controls sensitivity and obfuscation of api_login_payload field.
If true the field is masked on Interfaces and Audit logs.
When account's Secrets Obfuscation setting is also enabled, the API's field output will be OBFUSCATED_<HASH>.
Field containing the authentication token in the response to the authentication request.
The maximum length is 256 characters.
Prefix to add to the authentication token.
For example, "Bearer" or "JWT".
The maximum length is 16 characters.
Parameter name to send the authentication token.
For example, "Authorization".
The maximum length is 256 characters.
Where to send the parameter name with the authentication token and the prefix:
- cookie - Cookie
- header - Header
Method used for API Target authentication.
- api_login - API Login
- headers_or_cookies - Headers/Cookie
- interactive_browser - Interactive Browser
Enable secondary payload auth for authorization (BOLA) testing .
Enable secondary static headers/cookies auth for authorization (BOLA) testing.
Payload to send in the secondary authentication request, used for BOLA detection.
Controls sensitivity and obfuscation of api_login_payload_secondary field.
If true the field is masked on Interfaces and Audit logs.
When account's Secrets Obfuscation setting is also enabled, the API's field output will be OBFUSCATED_<HASH>.
Selected environment file for the collection.
ID of a staged collection to associate with this target.
ID of the Snyk project (source repository) to use for repository-based schema generation. Accepts the Snyk project id returned by GET /integrations/snyk-sast/code-projects/.
[Deprecated] Repository branch for repository-based schema generation. Still accepted and echoed back for backwards compatibility, but it has no effect: SGS resolves the repository's default branch itself, so a branch is never sent and cannot influence generation.
Master switch for interactive browser-based authentication (Postman/Bruno). When true, the engine runs a browser login and injects the extracted tokens. Requires api_login_method='interactive_browser', which acts as the active-method selector, and is mutually exclusive only with active collection-defined login. Stored auth_folder / auth_var_mapping may remain when collection login is disabled. A payload SA config (api_login_url / api_login_payload / …) may coexist on the same row so the user can toggle the active method via api_login_method without reconfiguring the inactive one.
Response
Type of schema that defines the API:
- openapi - OpenAPI schema.
- postman - Postman collection.
- bruno - Bruno collection.
- graphql - GraphQL schema.
Method to obtain the API schema. If not set, defaults to 'url' if api_schema_url is provided, otherwise 'file'.
- url - Fetch schema from URL
- file - Upload schema file
- introspection - Auto-discover via GraphQL introspection
- folder - Bruno collection folder
- zip - Bruno ZIP upload
- repository - Generate schema from source code repository
Format of the payload:
- application/json - The payload is in JSON format in the request body.
- application/x-www-form-urlencoded - The payload is encoded in the request URL.
- application/graphql - The payload is a raw GraphQL query string.
URL to make the authentication request to the API.
The maximum length is 2048 characters.
Payload to send in the authentication request.
The maximum length is 4096 characters.
Controls sensitivity and obfuscation of api_login_payload field.
If true the field is masked on Interfaces and Audit logs.
When account's Secrets Obfuscation setting is also enabled, the API's field output will be OBFUSCATED_<HASH>.
Field containing the authentication token in the response to the authentication request.
The maximum length is 256 characters.
Prefix to add to the authentication token.
For example, "Bearer" or "JWT".
The maximum length is 16 characters.
Parameter name to send the authentication token.
For example, "Authorization".
The maximum length is 256 characters.
Where to send the parameter name with the authentication token and the prefix:
- cookie - Cookie
- header - Header
Method used for API Target authentication.
- api_login - API Login
- headers_or_cookies - Headers/Cookie
- interactive_browser - Interactive Browser
Enable secondary payload auth for authorization (BOLA) testing .
Enable secondary static headers/cookies auth for authorization (BOLA) testing.
Payload to send in the secondary authentication request, used for BOLA detection.
Controls sensitivity and obfuscation of api_login_payload_secondary field.
If true the field is masked on Interfaces and Audit logs.
When account's Secrets Obfuscation setting is also enabled, the API's field output will be OBFUSCATED_<HASH>.
Selected environment file for the collection.
ID of a staged collection to associate with this target.
ID of the Snyk project (source repository) to use for repository-based schema generation. Accepts the Snyk project id returned by GET /integrations/snyk-sast/code-projects/.
[Deprecated] Repository branch for repository-based schema generation. Still accepted and echoed back for backwards compatibility, but it has no effect: SGS resolves the repository's default branch itself, so a branch is never sent and cannot influence generation.
Master switch for interactive browser-based authentication (Postman/Bruno). When true, the engine runs a browser login and injects the extracted tokens. Requires api_login_method='interactive_browser', which acts as the active-method selector, and is mutually exclusive only with active collection-defined login. Stored auth_folder / auth_var_mapping may remain when collection login is disabled. A payload SA config (api_login_url / api_login_payload / …) may coexist on the same row so the user can toggle the active method via api_login_method without reconfiguring the inactive one.
Changes
- info
endpoint added
- info