Authorization: Basic <username:password>
Basic Authentication: Simple Policy
Policy Name |
Basic Authentication: Simple |
Summary |
Allows access based on the basic authorization mechanism, with a single user-password |
Category |
Security |
First Mule version available |
v4.0.0 |
Returned Status Codes |
400 - Unauthorized or invalid client application credentials in WSDL API using SOAP 1.2 |
401 - Unauthorized or invalid client application credentials in HTTP or RAML APIs |
|
500 - Unauthorized or invalid client application credentials in WSDL API using SOAP 1.1 |
Summary
The Basic Authentication: Simple policy protects an API by forcing applications to provide a username and password when making requests.
The policy follows basic HTTP authentication standards.
When an error is encountered, the policy returns an "WWW-Authenticate" HTTP header field.
Configuring Policy Parameters
Mule Gateway
When you apply the Basic Authentication: Simple policy to an API, a request to that API must contain the following header:
The username:password
value must be a base64-encoded string. For example on a Mac OS X or Linux system, the username and password requirement is implemented as:
echo -n '<Client Id>:<Client Secret>' | base64