Beispiel #1
0
        public static string ToAuthenticationToken(this AuthenticationConfiguration @this)
        {
            @this.ThrowIfNull(typeof(AuthenticationConfiguration).Name.ToLower());

            var bytesArray = Encoding.UTF8.GetBytes($"{@this.SiteId}:{@this.ApiKey}");
            var token      = Convert.ToBase64String(bytesArray);

            return(token);
        }