SecurityHelper TryParseBasicAuthorizationHeader Method Kentico 8.0 API Reference
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: 8.0.0.0 (8.0.5239.26125)

Parameters

authorizationHeader
Type: OnlineSystem String
HTTP Authorization header
username
Type: OnlineSystem String 
Is set to username from the header if parsing was successful
password
Type: OnlineSystem String 
Is set to password from the header if parsing was successful

Return Value

Type: OnlineBoolean
True if parsing was successful, false otherwise
See Also