コード例 #1
0
        public static IBioWorldBuilder AddJwt(this IBioWorldBuilder 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));
        }