Пример #1
0
        public string GetClientID(HttpContext context)
        {
            var client_id = context.GetAuthClientID();

            if (!ValidateHelper.IsPlumpString(client_id))
            {
                client_id = WebClientConfig.ClientID();
            }
            return(client_id);
        }
Пример #2
0
        public string GetClientID(HttpContext context)
        {
            var client_id = context.Request.Headers["auth.client_id"] ?? string.Empty;

            if (!ValidateHelper.IsPlumpString(client_id))
            {
                client_id = WebClientConfig.ClientID();
            }
            return(client_id);
        }
Пример #3
0
 public string GetClientID(HttpContext context) => WebClientConfig.ClientID();