.AddOpenIdConnect(AuthenticationConstants.XenaOidcAuthenticationScheme, options =>
options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.ResponseType = AuthenticationConstants.OidcResponseType;
options.SignedOutRedirectUri = "/Home/LogoutRedirect";
options.Authority = authConfiguration.Authority;
options.ClientId = authConfiguration.ClientId;
options.ClientSecret = authConfiguration.ClientSecret;
options.SaveTokens = true;
options.RequireHttpsMetadata = false;
options.GetClaimsFromUserInfoEndpoint = true;
options.Scope.Add("profile");
options.Scope.Add("testapi");
options.Scope.Add("offline_access");
options.ClaimActions.MapJsonKey(JwtClaimTypes.PreferredUserName, JwtClaimTypes.PreferredUserName);