Activities of "Anjali_Musmade"

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

Hello SamirBoutazzout,

I am not able to reproduce the issue is it possible to share a sample solution with this issue to support@abp.io with ticket id.

regards, Anjali

Hello theChrisMarsh,

for your error - Loading PostCSS Plugin failed: Cannot find module 'autoprefixer' you may refer this link https://github.com/webpack-contrib/postcss-loader/issues/187

And as you are trying to modify the Theme and Layout for Angular please have look to this video link from 21.00 minutes onward https://www.youtube.com/watch?v=R9CqTtn6Wcg

I hope this will clear all your queries.

regards, Anjali

Hello theChrisMarsh,

Yes correct source-scss/ng.zip is needed for Angular.

To add LeptonX code as a project on angular side please try to hit below command at cmd of Angular project or terminal

abp get-source Volo.Abp.LeptonXTheme.Pro --version 2.3.3

you may change version as per your requirement.

please do let me know if it helps you

Thank you, Anjali

Hello theChrisMarsh abp get-source Volo.Abp.LeptonXTheme.Pro -o LeptonX You need to download the source, add it to your project and remove the references to the Nuget and replace it with the project reference.

So, you can change the package reference to the project reference and specify the path as the downloaded source code path.

For example:

-    <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.3.*-*" />
+    <ProjectReference Include="..\..\..\LeptonX\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" />

Hello rwright-ruhealth,

could you please check this link https://learn.microsoft.com/en-us/answers/questions/1246334/drop-down-in-razor-that-can-let-you-type-the-value?page=1

Here instead of controller you need to add code in code behind i.e. *.cshtml.cs or Model.

please do let me know if it helps you

Thank you, Anjali

Showing 731 to 740 of 1087 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30