Base solution for your next web application

Activities of "Bernard"

Hi,

Any idea ? For having 2 schemes when Connecting ?

I think it should be something like this : https://stackoverflow.com/questions/49694383/use-multiple-jwt-bearer-authentication but for Openconnect

Answer

Hi ismail,

Thks

Question

Hi,

What should i run for command when changing manually any js file ?

Thks

Hi I send you detail by email did you receive it ?

Question

Hi,

I implemented Elsa and everything works fine but Elsa is accessible without connecting how to force you to be connected to access it

i added : ` services.AddMvc() .AddRazorPagesOptions(options => {

   options.Conventions.AuthorizePage("/Workflows");

});

But doesn't work`, i would like to integrated Aspnet zero App permissions

).AddItem(new MenuItemDefinition( AppPageNames.Common.Elsa, L("Workflows"), url: "/Workflows", icon: "flaticon-map", permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Workflows)

thks

Hi

I see it support but you must change manifest and workaround security So I prefer keep manually

Thanks

Hi,

I'm trying to implement the ability to read Outlook emails in my application (https://learn.microsoft.com/en-us/training/modules/msgraph-dotnet-core-show-user-emails/1-introduction), but I'm facing a problem because Graph needs to launch the services services // Add support for OpenId authentication .AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) failed

because an OpendConnectId Schema already exists

I think This code causes issue in Startup.cs

services // 2. Add support for OpenId authentication

.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)

.AddMicrosoftIdentityWebApp(Configuration)

How to fix this problem THANKS

Hi,

After changing this value

var emailClaim = claims.FirstOrDefault(c => c.Type == "unique_name"); to

var emailClaim = claims.FirstOrDefault(c => c.Type == "preferred_username");

Everything works well

But i think we **must always **add the tenant subdomain manually to make the openconnectId work ?

  • wildcard is not allowed *

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>
Showing 71 to 80 of 134 entries