SecurityHelperTryParseBasicAuthorizationHeader Method |
Tries to parse Authorization header (Basic Authentication). Retrieves both username and password from header if parsing succeeded.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntaxpublic static bool TryParseBasicAuthorizationHeader(
string authorizationHeader,
out string username,
out string password
)
Parameters
- authorizationHeader
- Type: SystemString
HTTP Authorization header - username
- Type: SystemString
Is set to username from the header if parsing was successful - password
- Type: SystemString
Is set to password from the header if parsing was successful
Return Value
Type:
BooleanTrue if parsing was successful, false otherwise
See Also