public static IApplicationBuilder UseAldeloAuthentication(this IApplicationBuilder app, AldeloAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return app.UseMiddleware<AldeloAuthenticationMiddleware>(options);
        }
        public static IApplicationBuilder UseAldeloAuthentication(this IApplicationBuilder app, Action<AldeloAuthenticationOptions> configureOptions)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }
            if (configureOptions == null)
            {
                throw new ArgumentNullException(nameof(configureOptions));
            }

            var options = new AldeloAuthenticationOptions();
            configureOptions(options);

            var encoder = new UrlEncoder();

            return app.UseMiddleware<AldeloAuthenticationMiddleware>(encoder, options);
        }