} // End Sub xxx public static void SetupBearer(Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions options) { options.Authority = ""; options.Audience = ""; options.ClaimsIssuer = ""; options.Challenge = ""; options.Challenge = ""; //options.BackchannelTimeout //options.BackchannelHttpHandler // options.Configuration.SigningKeys = null; // options.Configuration.TokenEndpoint // options.Events //options.SecurityTokenValidators options.TokenValidationParameters = null; options.RequireHttpsMetadata = true; // options.Events. // options.SaveToken // options.TokenValidationParameters // options.SecurityTokenValidators // options.MetadataAddress }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions jwtBearerOptions = new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions(); Microsoft.IdentityModel.Tokens.TokenValidationParameters validation = new Microsoft.IdentityModel.Tokens.TokenValidationParameters(); app.UseMvc(); }