Example #1
0
        public static IDrexBuilder AddJwt(this IDrexBuilder builder, string sectionName = SectionName,
                                          Action <JwtBearerOptions> optionsFactory      = null)
        {
            if (string.IsNullOrWhiteSpace(sectionName))
            {
                sectionName = SectionName;
            }

            var options = builder.GetOptions <JwtOptions>(sectionName);

            return(builder.AddJwt(options, optionsFactory));
        }