Form Authentication in HTTP Collection
Form Authentication in WEB Collection
To index documents using form authentication, provide the following fields in the WEB collection settings:
- Form URL
- Method
- Name–value pairs for username, password, and other required fields
Besides basic form authentication, SearchBlox also supports:
- ADFS Form Authentication
- Dynamic Form Authentication
ADFS Form Authentication
SearchBlox can index pages protected with ADFS form authentication.
Steps to configure ADFS Form Authentication in WEB Collection
-
Create a WEB Collection and set the Root Path.
-
In the collection settings, provide Form Authentication details:
- Form URL
- Select Type as ADFS
- Name–value pair for username
- Name–value pair for password
- Any other required name–value pairs
- Save the changes
-
Start Indexing

Dynamic Form Authentication
SearchBlox supports dynamic form authentication for forms that generate dynamic headers, in addition to static form authentication.
Steps to use Dynamic Form Authentication
- Stop SearchBlox if it is running.
- Edit the file: <SEARCHBLOX_INSTALLATION_PATH>\webapps\ROOT\WEB-INF\formauth.yml. Add the required details for your form authentication. Refer to the instructions provided after # in the YML file for guidance.
## Getting form data values from request headers and response headers for setting configured form data value dynamically
formauth:
##Give true to enable dynamic form authentication
enabledynamicformdata: true
collectionsconfig:
##Collection name
col1:
##xsrf token for dynamic form authentication
_xsrftoken: $1
##Multiple collections are supported
col2:
_xsrftoken: $2
-
Start SearchBlox
-
Provide the required form authentication details in WEB Collection settings:
- Form URL
- Select Type as POST
- Name–value pair for username
- Name–value pair for password
- Any other required name–value pairs
-
Save changes
-
Start Indexing
Form Authentication Work Flow

Updated 15 days ago
What’s Next
