--- title: Configure key-based MID Web Server authentication description: Provide added security to your MID Web Server extension by using key-based authentication. Generate an authentication token to be sent in the Authorization header of incoming client requests. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/event-management/configure-mid-web-server-extension-metric-data.html release: australia product: Event Management classification: event-management topic_type: task last_updated: "2026-03-12" reading_time_minutes: 2 breadcrumb: [Configure the MID Web Server extension, MID Web Server, Event Management setup, Configure, Event Management, ITOM AIOps, IT Operations Management] --- # Configure key-based MID Web Server authentication Provide added security to your MID Web Server extension by using key-based authentication. Generate an authentication token to be sent in the Authorization header of incoming client requests. ## Before you begin **Note:** This procedure is only for compatibility with releases prior to Australia. For details on the procedure in the Australia release for configuring the MID Web Server, see [Configure the MID Web Server extension](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/event-management/configure-mid-web-server-extension.md). - Deploy and start a MID Server. - Configure a MID Web Server extension and select Keybased as the authentication type. For details, see [Configure the MID Web Server extension](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/event-management/configure-mid-web-server-extension.md). Role required: agent\_admin ## Procedure 1. Using a script program, create a token by constructing a string using defined elements of the HTTP/HTTPS request \(HTTP verb, content type header, and request path, received from the client accessing the MID Web Server extension endpoints\). 2. Create an HMAC \(Hash Message Authentication Code\) of the string by signing the generated string with the auto-generated secret key that is displayed in the **Secret Key**. This key is unique per context. 3. Provide information to send this authentication token in the request Authorization header.
| Item | Value |
|---|---|
| Path to a web service API for sending raw data |
URL format:`https:// |
| Request type | POST |
| Date format | ``` yyyy-MM-dd'T'HH:mm:ss.SSS'Z' ``` For example: 2016-06-08T20:54:58.917Z |
| Content-Type | application/json |