Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Bernard"

Hi,

I'm trying OpenIconnect services but got this issue :

appsettings

"OpenId": { "IsEnabled": "true", "Authority": "https://login.microsoftonline.com/{tenant}/v2.0", "ClientId": "XXXXXXXX", "ClientSecret": "XXXXXXXX, "ValidateIssuer": "false", "ResponseType": "code", "ClaimsMapping": [ { "claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier", "key": "http://schemas.microsoft.com/identity/claims/objectidentifier" } ]

i change also this method ` public virtual string GetUserNameFromClaims(List

  var emailClaim = claims.FirstOrDefault(c => c.Type == "unique_name");
  if (emailClaim != null)
  {
      return emailClaim.Value.ToMd5();
  }

  emailClaim = claims.FirstOrDefault(c => c.Type == ClaimTypes.Email);

  if (emailClaim != null)
  {
      return emailClaim.Value;


      //return claims.First(c => c.Type == ClaimTypes.Email)?.Value;

  }

  throw new UserFriendlyException($"Both unique_name and {ClaimTypes.Email} claims are missing!");

}` Thks for help

Hi,

I would like to save it also.

Like

Iā€™d like to display the good control combobox Date String I think on looping with switch case on type

 @foreach (var item in Model.DynamicProperties)
 {
 <div class="mb-5">
     <label for="edp-create-modal-dynamicPropertyId" class="form-label">@item.PropertyName</label>
         @switch (item.InputType.Name)
    {

        case "COMBOBOX" :
                            // code block
          break;

        case "SINGLE_LINE_STRING":
                             // code block
          break;

         case "DATETIME":
                            // code block
            break;


    }

 </div>

Sorry, but what are the arguments ?

private readonly IDynamicEntityPropertyValueAppService _dynamicValues; var listdynamic = _dynamicValues.GetAllDynamicEntityPropertyValues(Person);??

Should the service be called in a Js view like CreateorEdit.js for my entity an example would be welcome

I tried with this method in PersonController :

``[AbpMvcAuthorize(AppPermissions.Pages_Contacts_Create, AppPermissions.Pages_Contacts_Create)]
public async Task<ActionResult> CreateOrEdit(int? id)
{
    GetPersonForEditOutput getPersonForEditOutput;

    if (id.HasValue)
    {
        getPersonForEditOutput = await _personsAppService.GetPersonForEdit(new EntityDto { Id = (int)id });
      

    }
    else
    {
        getPersonForEditOutput = new GetPersonForEditOutput
        {
            Person = new CreateOrEditPersonDto()
        };

        getPersonForEditOutput.Person.Intitule = "A DEFINIR";
        getPersonForEditOutput.Person.Source = ListSource.BackOffice;
        getPersonForEditOutput.Person.Statut = ListeStatutPerson.ColdLead;
        getPersonForEditOutput.Person.DateNaissance = DateTime.Now;

    }

    getPersonForEditOutput.Person.TypePerson = TypePerson.Physique;
    getPersonForEditOutput.Person.ProfilPhysique = ListeProfilPhysique.Contact;


    var allDynamicProperties = (await _dynamicPropertyAppService.GetAll()).Items.ToList();
    var definedPropertyIds = (await _dynamicEntityPropertyAppService.GetAllPropertiesOfAnEntity(new DynamicEntityPropertyGetAllInput() { EntityFullName = "Person" }))
        .Items.Select(x => x.DynamicPropertyId).ToList();

    var viewModel = new CreateOrEditPersonViewModel()
    {
        Person = getPersonForEditOutput.Person,
        PersonIntitule = getPersonForEditOutput.PersonIntitule,
        DynamicProperties = allDynamicProperties.Where(x => !definedPropertyIds.Contains(x.Id)).ToList()
};

    return View(viewModel);
}

Is it right ? I don't know how display Values in View

Hi Ismail

Thks šŸ‘

Question

Hi,

Is it possible to display a dynamic entity properties, in a view and how please ? The objective being to dynamically display the position and the dynamic field in a view

Thks

Answer

Thks Ismail !

Question

HI,

How can i start WEB.MVC project with a landing / public html page and Login with Menu like :

I change these lines in HomeController (Web.Mvc)

to get Is it the good pratice ?

Thks

Answer

Hi Thanks šŸ™

Answer

Hi Ismail Thank you so much šŸ˜Š

Question

Hi

is it possible to allow tenants using Stripe for their own customers?

Thanks for your help

Showing 81 to 90 of 136 entries