Activities of "Anjali_Musmade"

Hello iteabr2020,

HTTP/2's use of a single TCP connection is not typically a bottleneck; in fact, it's one of the key features designed to improve performance. HTTP/2's multiplexing capability allows multiple requests and responses to be multiplexed over a single connection, which can lead to more efficient use of that connection.

Also have look to this https://factoryhr.medium.com/http-2-the-difference-between-http-1-1-benefits-and-how-to-use-it-38094fa0e95b

Thanks, Anjali

Answer

Hi

is your Auth Server up and running on this https://auth.obinex.com.tr can you hit https://auth.obinex.com.tr/.well-known/openid-configuration on your browser and see if it works please check URL of AuthServer.Authority throughout application do you have the SSL attached the iis site where authserver is server? also try flushing Redis server

flushall

Sorry for the inconvenience I will check and get back to you asap

Hello Spospisil You can override styles from index.html file like below

Below is the pat for file

You will see output like this with override css

Hello iteabr2020,

Have you checked this https://stackoverflow.com/questions/73553149/why-preflight-requests-fail-only-in-chrome-and-then-they-work-after-few-tries please try to find out issue on chrome by following this.

I think your application is working on another browsers so it might not be issue related to performance, It should be browser related issue and need to find that issue.

Thanks, Anjali

Hello sandeep.step2gen@gmail.com,

I am trying to reproduce the issue at my end but I am unable to do so.

Could you please try to restore packages once for contracts solution and clean and rebuild the solution.

Please let me know if it helps you

Thanks, Anjali

Hello iteabr2020,

Could you please try below steps

  1. Clear Browser Cache: Clear the browser cache in both Chrome and Edge. Sometimes, an outdated or corrupted cache can lead to performance issues.

  2. Incognito Mode: Test your Angular application in incognito or private browsing mode. This ensures that no browser extensions or cached data are affecting the performance.

Also have look to this link https://sandeep.dev/various-ways-to-speed-up-your-cors-preflight-requests if it founds helpful for you

Regards, Anjali

Hello Navneet@aol.com.au

Please try to add /account in your client uri of OpenIddictApplications table for angular and MVC project.

With the above update in table I was able to redirect to landing page of angular project as pre-authenticated

It will look like this.

Please do let me know if it helps you.

Thank You Anjali

Hi

you can use azure ad token in angular by storing it in the cookie. see the implementation and steps you have to do in this ticket. https://support.abp.io/QA/Questions/5720/PowerBI-Embed-access-token-issue-with-ABP#answer-3a0d816c-f911-fb7f-703b-e50b0c54a4be

Also in azure ad please specify AuthServer url as Redirect URL not the angular one.

please override OnGetExternalLoginCallbackAsync the login.cshtml.cs

and write below code, and the when you are back from login inside angular app just get the token for cookie

using Jupiter.Web;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
using Owl.reCAPTCHA;
using System;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Account.ExternalProviders;
using Volo.Abp.Account.Public.Web;
using Volo.Abp.Account.Public.Web.Pages.Account;
using Volo.Abp.Account.Security.Recaptcha;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Security.Claims;

namespace Jupiter.Web.Pages.Account
{
    [ExposeServices(typeof(LoginModel))]
    [Dependency(ReplaceServices = true)]
    public class AppLoginModel : LoginModel
    {
        private readonly IConfiguration _configuration;
        public AppLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions< AbpAccountOptions > accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions< IdentityOptions > identityOptions, IOptionsSnapshot< reCAPTCHAOptions > reCaptchaOptions, IConfiguration configuration) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions)
        {
            _configuration = configuration;
        }

        public override async Task< IActionResult > OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null)
        {
            var token = await SignInManager.GetExternalLoginInfoAsync();
            var accessToken = token?.AuthenticationTokens?.FirstOrDefault(x => x.Name == "access_token");
            var powerbi = new PowerBiServiceApi(_configuration, accessToken?.Value ?? string.Empty);
            HttpContext.Response.Cookies.Append("AuthToken", accessToken?.Value ?? string.Empty);
            var report = await powerbi.GetReport(Guid.Parse("workspaceid"), Guid.Parse("reportid"));
            return await base.OnGetExternalLoginCallbackAsync(returnUrl, returnUrlHash, remoteError);
        }
    }
}

Answer

Hi

please check this guide to generate two endpoints in a swagger https://github.com/domaindrivendev/Swashbuckle.AspNetCore#generate-multiple-swagger-documents

you can then add [ApiExplorerSettings(GroupName = "v2")] in each controller of your api.

let me know if you face any issue

Showing 951 to 960 of 1312 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 16, 2025, 11:47