File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
aspnetcore/security/authentication Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ builder.Services.AddAuthentication(options =>
5959.AddCookie ()
6060.AddOpenIdConnect (options =>
6161{
62- configuration . GetSection (" OpenIDConnectSettings" ). Bind ( options );
63-
64- options .Authority = configuration [ " OpenIDConnectSettings: Authority" ];
65- options .ClientId = configuration [ " OpenIDConnectSettings: ClientId" ];
66- options .ClientSecret = configuration [ " OpenIDConnectSettings: ClientSecret" ];
62+ var oidcConfig = builder . Configuration . GetSection (" OpenIDConnectSettings" );
63+
64+ options .Authority = oidcConfig [ " Authority" ];
65+ options .ClientId = oidcConfig [ " ClientId" ];
66+ options .ClientSecret = oidcConfig [ " ClientSecret" ];
6767
6868 options .SignInScheme = CookieAuthenticationDefaults .AuthenticationScheme ;
6969 options .ResponseType = OpenIdConnectResponseType .Code ;
You can’t perform that action at this time.
0 commit comments