Activities of "Anjali_Musmade"

Hello vu.dh@veek.vn,

Can you please add the previous code in **AuthServerModule.cs file and check again?

Please do let me know if anything else is needed.

Thanks, Anjali

Hello Dev2ng,

Here's a checklist of things to check and configure in the Azure portal for your application registration:

Application Registration: Make sure your application is registered in Azure AD. If it's not, you need to create an application registration. Authentication: Verify that you have configured the correct Redirect URIs, which are the endpoints where Azure AD should redirect the user after authentication. See below screen shot

Please do let me know if anything else is needed.

Thanks, Anjali

Hi

we have the following implementation which abp follows https://docs.abp.io/en/abp/latest/Best-Practices/Module-Architecture

Create you controller in HttpApi.csproj Project implement and inject you ApplicationService .

Create **ApplicationService ** in Application.csproj

Create interface of the application service in Application.Shared.csproj

Hello Dev2ng,

Please try to add required url in the CorsOrigins variable as highlighted in screenshot.

CORS Configuration: If you are developing a web application, this error can also occur due to Cross-Origin Resource Sharing (CORS) issues. Make sure that the resource's CORS settings allow requests from the origin example - https://login.microsoftonline.com.

Please do let me know if anything else is needed.

Thanks, Anjali

Hello vu.dh@veek.vn,

Please add this block of code to **HttpApiHostModule.cs in public override void OnApplicationInitialization(ApplicationInitializationContext context)

app.Use((ctx, next) =>
    {
        ctx.Request.Scheme = "https";
        return next();
    });

let me know if this helps you.

Thanks, Anjali

Hi,

You can create this file under HttpApi.Host project if you don't have auth server seperated.

create following folder structure and place above code in Login.cshtml.cs

if you have a project with AuthServer then please do above steps in that project

Read more about overriding existing models and services https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface#example-2

Hi,

in the current ABP io Microsoft authentication implementation you can get access token of Microsoft identity provider like this

add below line as showing in the image

                options.SaveTokens = true;

using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Owl.reCAPTCHA;
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 Acme.Penstore.Pages.Account
{
    [ExposeServices(typeof(LoginModel))]
    [Dependency(ReplaceServices = true)]
    public class AppLoginModel : LoginModel
    {
        public AppLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions<IdentityOptions> identityOptions, IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions)
        {
        }


        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");

            return await base.OnGetExternalLoginCallbackAsync(returnUrl, returnUrlHash, remoteError);
        }
    }
}


also add you Microsoft client id and client secret on the Account Settings here

Hello Sergei.Gorlovetsky,

Apologies for the delay in response. PFB our username for Github and share the required access: anjalimus Please do let me know if anything else is needed.

Thank You, Anjali

Thank you again for reporting this issue, we will fix this issue in the next release.

We have also refunded your ticket. Please check the updated balance.

Regards, Anjali

Hello fernando.guilherme,

I am trying to reproduce the issue. I am unable to reproduce. Could you please share steps to reproduce or give some snippet of html code and ts code of that particular condition?

If you are using ngx-datatable-column in a loop then please check the following links Demo - http://swimlane.github.io/ngx-datatable/#toggle Source code - https://github.com/swimlane/ngx-datatable/blob/master/src/app/columns/column-toggle.component.ts let me know if this help you.

Thanks, Anjali

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