Activities of "Sundar"

Hi ,

I am not sure whether it is a bug or missing any configuration.

Thanks Sundar

Hi,

I mean that after sucessful AzureAD validation , it does shows the Register Page without email and password.

Thanks ============\

Hi,

I am new to abp.io framework and we tried in exploring the functionality of SSO using AzureAD and we did able to get that working with the help of the documentation provided in the website. We are facing 2 challenges currently and highly appreciate if someone can help us.

  1. After the successful login verification using openid , the application is not allowing the user to enter into the site instead it is circling back to the login page again. Not sure what i am missing.

  2. But we would like to store the user information after the user credentials is verified.

Thanks Sundar

  public override void ConfigureServices(ServiceConfigurationContext context)
  {
      var hostingEnvironment = context.Services.GetHostingEnvironment();
      var configuration = context.Services.GetConfiguration();
 

      context.Services.AddAuthentication()
      //.AddMicrosoftIdentityWebApp(configuration, "AzureAd", OpenIdConnectDefaults.AuthenticationScheme)
      //.EnableTokenAcquisitionToCallDownstreamApi()
      //.AddInMemoryTokenCaches();

      .AddOpenIdConnect("AzureOpenId", "Azure AD OpenId", options =>
      {
          options.Authority = "https://login.microsoftonline.com/" + configuration["AzureAd:TenantId"] + "/v2.0/";
          options.ClientId = configuration["AzureAd:ClientId"];
          options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
          options.CallbackPath = configuration["AzureAd:CallbackPath"];
          options.ClientSecret = configuration["AzureAd:ClientSecret"];
          options.RequireHttpsMetadata = false;
          options.SaveTokens = true;
          options.GetClaimsFromUserInfoEndpoint = true;
          options.Scope.Add("email");

          options.ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
      });

      if (!configuration.GetValue<bool>("App:DisablePII"))
      {
          Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
          Microsoft.IdentityModel.Logging.IdentityModelEventSource.LogCompleteSecurityArtifact = true;
      }

      if (!configuration.GetValue<bool>("AuthServer:RequireHttpsMetadata"))
      {
          Configure<OpenIddictServerAspNetCoreOptions>(options =>
          {
              options.DisableTransportSecurityRequirement = true;
          });
          
          Configure<ForwardedHeadersOptions>(options =>
          {
              options.ForwardedHeaders = ForwardedHeaders.XForwardedProto;
          });
      }

      ConfigureBundles();
      ConfigureUrls(configuration);
      ConfigurePages(configuration);
      ConfigureImpersonation(context, configuration);
      ConfigureHealthChecks(context);
      ConfigureCookieConsent(context);
      ConfigureAuthentication(context);
      ConfigureAutoMapper();
      ConfigureVirtualFileSystem(hostingEnvironment);
      ConfigureNavigationServices();
      ConfigureAutoApiControllers();
      ConfigureSwaggerServices(context.Services);
      ConfigureTheme();

      Configure<PermissionManagementOptions>(options =>
      {
          options.IsDynamicPermissionStoreEnabled = true;
      });
      
      Configure<RazorPagesOptions>(options =>
      {
          options.Conventions.AuthorizePage("/Books/Index", TitanSecurityPermissions.Books.Default);
          options.Conventions.AuthorizePage("/Books/CreateModal", TitanSecurityPermissions.Books.Create);
          options.Conventions.AuthorizePage("/Books/EditModal", TitanSecurityPermissions.Books.Edit);
      });
  }

Dear All,

Reinstalled the framework once again and followed the same steps again and it works . Thanks for the support.

Best regards Sundar

  • Template: app
  • Created ABP Studio Version: 0.9.14
  • Tiered: No
  • Multi-Tenancy: Yes
  • UI Framework: angular
  • Theme: leptonx
  • Theme Style: system
  • Database Provider: ef
  • Database Management System: sqlserver
  • Separate Tenant Schema: No
  • Mobile Framework: maui
  • Progressive Web App: No
  • Public Website: No
  • Include Tests: Yes
  • Optional Modules:
    • GDPR
    • FileManagement
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • OpenIddictAdmin

Hi , I am new to ABP Framework. Tried a new solution by selecting the Application(Layered) and having the Angular as the UI for frontend.

The windows.host application works fine but the angular doesn't come up.

I don't see any error in the logs 19:46:21.074 Information Stopping the application: IMGDB.Angular 19:46:21.325 Information Application has been stopped: IMGDB.Angular 19:46:21.483 Information Starting the application: IMGDB.Angular 19:46:22.521 Information Application has been started: IMGDB.Angular

http://localhost:4200 shows The server refused the connection.Ensure the server is running and accessible.

Would appreciate if some help me to fix this.

Thanks Sundar

Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 08, 2025, 14:09