Click or drag to resize
SecurityHelperTryParseBasicAuthorizationHeader Method
Tries to parse Authorization header (Basic Authentication). Retrieves both username and password from header if parsing succeeded.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public 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: Boolean
True if parsing was successful, false otherwise
See Also