---
title: Explore Web service security
description: Enforce security using basic authentication, mutual authentication, or WS-Security.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-security/authentication/exploring-web-sec.html
release: australia
product: Authentication
classification: authentication
topic_type: concept
last_updated: "2026-03-12"
reading_time_minutes: 2
breadcrumb: [Web service security, Authentication, Access Management]
---
# Explore Web service security
Enforce security using basic authentication, mutual authentication, or WS-Security.
## Basic Authentication
To enforce basic authentication on each request for a WSDL document or posting of SOAP messages, you may set the property **glide.basicauth.required** to `true`. If you do so, each WSDL or SOAP request would have to contain the "Authorization" header as specified in the [Basic Authentication](http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#BasicAA) protocol. Because the request is non-interactive, the **Authorization** header is always required during a request.
Supplying basic authentication information whether or not it is required has the added advantage that the data created or updated as a result of the Web Service invocation is done on behalf of the user supplied in the basic authentication credentials. As an example, when creating an Incident record, the journal fields have the user id of the basic authenticated user, instead of the default **Guest** user.
To make the authorization header ignore the capitalization rules, use the **glide.security.script.include.name.case.insensitive.list** property. You can modify this property in the System Properties \[sys\_properties\] table and add the script includes that are necessary to process the authentication. By default, this property has these values:
- BasicAuth
- CustomAuth
Add other script includes as needed.
To supply basic authentication when using Perl and the SOAP::Lite libraries, you can implement the following function:
```
sub SOAP :: Transport :: HTTP :: Client :: get_basic_credentials { return 'user_name' => 'password' ; }
```
- When using C\# .NET VS 2005 or older, you can take advantage of the Credentials object, for example:
```
System.Net . ICredentials cred = new System.Net . NetworkCredential ( "user_name", "password" ) ;
service . ServiceNow proxy = new service . ServiceNow ( ) ;
service . get getService = newservice . get ( ) ;
service . getResponse getServiceResponse = new service . getResponse ( ) ;
try {
proxy . Credentials = cred ;
getService . sys_id = "bf522c350a0a140701972dbf876f1610" ;
getServiceResponse = proxy . get (getService ) ; catch (Exception ex ) { }
```
- When using C\# .NET VS 2008, you can take advantage of the ClientCredentials object, for example:
```
Demo_Incident. ServiceNowSoapClient client = new Test08WebService . Demo_Incident . ServiceNowSoapClient ( ) ;
client . ClientCredentials . UserName . UserName = "admin" ;
client . ClientCredentials . UserName . Password = "admin" ;
```
Then in your app.config file look for the following and change `None` to `Basic`:
```