幽梦紫曦

core配置

电脑版发表于:2020/5/17 21:30
services.AddAuthentication(options =>{        
     options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;(等同于Cookies) 
   options.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
}).AddCookie(CookieAuthenticationDefaults.AuthenticationScheme)  
.AddOpenIdConnect(OpenIdConnectDefaults.AuthenticationScheme, options =>{        
 options.SignInScheme = "Cookies";         
 options.Authority = "http://localhost:53387/";         
 options.RequireHttpsMetadata = false;         
 options.ClientId = ".NET58.Login";         
 options.SaveTokens = true;   
 });


关于TNBLOG
TNBLOG,技术分享
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢