HTTP::password¶
Description¶
Returns the password part of HTTP basic authentication.
As described in
RFC2617 the username
and password in basic authentication is sent by the client in the
Authorization header. The client base64 encodes the username and
password in the format of:
Authorization: Basic base64encoding(username:password)
The HTTP::username command parses and base64
decodes the username.
The HTTP::password command parses and base64 decodes the password.
Examples¶
# Small chunk of an iRule for radius authentication
when HTTP_REQUEST {
AUTH::username_credential $auth_sid [HTTP::username]
AUTH::password_credential $auth_sid [HTTP::password]
}
when CLIENT_ACCEPTED {
set auth_sid [AUTH::start pam default_radius]
}