Open Closed

Can't make a user login from IdentityServer after redirect #486


User avatar
0
alexander.nikonov created
  • ABP Framework version: v3.2
  • UI type: Angular

After upgrading to the ABP version where login workflow changed, our published Azure app stopped logging user in - it just redirects back to login page. We don't know what settings need to be changed.

Here are the details:

  1. Apps published as web apps under IIS default web site:

  2. some hand-made SSL certificate is installed

  3. configurations are as follows:

`

const baseUrl = 'https://xxxxxx.azure.com/CentralTools';

export const environment = {
  production: false,
  application: {
    baseUrl,
    name: 'CentralTools'
  },
  oAuthConfig: {
    issuer: 'https://xxxxxx.azure.com/identityserver',
    redirectUri: baseUrl,
    clientId: 'CentralTools_App',
    dummyClientSecret: '1q2w3e*',
    scope: 'CentralTools AuditLogging offline_access',
    strictDiscoveryDocumentValidation: true,
    timeoutFactor: 0.9, // default value is 0.75 - Timeout for updating access_token
    responseType: 'code', // This is parameter is required in order to get new access_token via refresh token
    showDebugInformation: true,
    requireHttps: true
  },
  apis: {
    default: {
      url: 'https://xxxxxx.azure.com/httpapihost'
    },
    AuditLogging: {
      url: 'https://xxxxxx.azure.com/auditlogging'
    }
  },
  localization: {
    defaultResourceName: 'CentralTools'
  }
};

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var app = context.GetApplicationBuilder();

    app.UseCookiePolicy(new CookiePolicyOptions
    {
        MinimumSameSitePolicy = SameSiteMode.Lax
    });

    var env = context.GetEnvironment();

    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }

    app.UseAbpRequestLocalization();
    app.UseHsts();
    app.UseHttpsRedirection();

    if (!env.IsDevelopment())
    {
        app.UseErrorPage();
    }

    app.UseCors(DefaultCorsPolicyName);

    app.UseCorrelationId();
    app.UseVirtualFiles();
    app.UseRouting();
    app.UseAuthentication();
    if (MultiTenancyConsts.IsEnabled)
    {
        app.UseMultiTenancy();
    }
    app.UseIdentityServer();
    app.UseAuthorization();
    app.UseAuditing();
    app.UseConfiguredEndpoints();
}

{
  "App": {
    "SelfUrl": "https://xxxxxx.azure.com/IdentityServer",
    "CorsOrigins": "https://xxxxxx.azure.com,https://localhost/CentralTools"
  },
  ...
}
  1. request workflow while trying to log in:

  2. API urls set in DB:


13 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you share the auth server logs?

  • User Avatar
    0
    alexander.nikonov created

    Here it is:

    2020-10-14 09:53:15.234 +00:00 [INF] Starting AbxEps.CentralTools.IdentityServer. 2020-10-14 09:53:19.927 +00:00 [INF] User profile is available. Using 'C:\Users\IdentityServerAppPool\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. 2020-10-14 09:53:20.032 +00:00 [INF] Loaded ABP modules: 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Sms.AbpSmsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Security.AbpSecurityModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Data.AbpDataModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Settings.AbpSettingsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Timing.AbpTimingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Json.AbpJsonModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Threading.AbpThreadingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Guids.AbpGuidsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Validation.AbpValidationModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Features.AbpFeaturesModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Minify.AbpMinifyModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Http.AbpHttpModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.UI.AbpUiModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule 2020-10-14 09:53:20.033 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Ldap.AbpLdapModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.AbpAccountSharedApplicationContractsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.AbpAccountPublicApplicationContractsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityHttpApiModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.AbpAccountPublicHttpApiModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.Public.Web.AbpAccountPublicWebModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.IdentityServer.AbpIdentityServerDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Caching.AbpCachingModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.IdentityServer.AbpIdentityServerDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.Web.AbpAccountPublicWebIdentityServerModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationContractsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LeptonTheme.LeptonThemeManagementHttpApiModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementWebModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.AbpAspNetCoreMvcUiLeptonThemeModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.AbpAccountSharedApplicationModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BlobStoring.AbpBlobStoringModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Account.AbpAccountPublicApplicationModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Saas.SaasDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - AbxEps.CentralTools.CentralToolsDomainSharedModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.IdentityServer.AbpPermissionManagementDomainIdentityServerModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Saas.SaasDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Commercial.SuiteTemplates.VoloAbpCommercialSuiteTemplatesModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - AbxEps.CentralTools.CentralToolsDomainModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Abp.LanguageManagement.EntityFrameworkCore.LanguageManagementEntityFrameworkCoreModule 2020-10-14 09:53:20.034 +00:00 [INF] - Volo.Saas.EntityFrameworkCore.SaasEntityFrameworkCoreModule 2020-10-14 09:53:20.035 +00:00 [INF] - Volo.Abp.BlobStoring.Database.EntityFrameworkCore.BlobStoringDatabaseEntityFrameworkCoreModule 2020-10-14 09:53:20.035 +00:00 [INF] - AbxEps.CentralTools.EntityFrameworkCore.CentralToolsEntityFrameworkCoreModule 2020-10-14 09:53:20.035 +00:00 [INF] - AbxEps.CentralTools.CentralToolsIdentityServerModule 2020-10-14 09:53:20.634 +00:00 [DBG] Started background worker: Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker 2020-10-14 09:53:20.914 +00:00 [INF] Starting IdentityServer4 version 3.1.3.0 2020-10-14 09:53:21.367 +00:00 [INF] Using the default authentication scheme Identity.Application for IdentityServer 2020-10-14 09:53:21.367 +00:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for authentication 2020-10-14 09:53:21.367 +00:00 [DBG] Using Identity.External as default ASP.NET Core scheme for sign-in 2020-10-14 09:53:21.367 +00:00 [DBG] Using Identity.External as default ASP.NET Core scheme for sign-out 2020-10-14 09:53:21.367 +00:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for challenge 2020-10-14 09:53:21.367 +00:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for forbid 2020-10-14 09:53:21.724 +00:00 [INF] Initialized all ABP modules. 2020-10-14 09:53:21.755 +00:00 [INF] Application started. Press Ctrl+C to shut down. 2020-10-14 09:53:21.755 +00:00 [INF] Hosting environment: AzureDev 2020-10-14 09:53:21.756 +00:00 [INF] Content root path: C:\inetpub\wwwroot\Test\IdentityServer 2020-10-14 09:53:21.780 +00:00 [INF] Request starting HTTP/2.0 GET https://xxxxxx.azure.com/identityserver/.well-known/openid-configuration
    2020-10-14 09:53:25.014 +00:00 [DBG] Login Url: /Account/Login 2020-10-14 09:53:25.014 +00:00 [DBG] Login Return Url Parameter: ReturnUrl 2020-10-14 09:53:25.014 +00:00 [DBG] Logout Url: /Account/Logout 2020-10-14 09:53:25.014 +00:00 [DBG] ConsentUrl Url: /Consent 2020-10-14 09:53:25.014 +00:00 [DBG] Consent Return Url Parameter: returnUrl 2020-10-14 09:53:25.014 +00:00 [DBG] Error Url: /Account/Error 2020-10-14 09:53:25.014 +00:00 [DBG] Error Id Parameter: errorId 2020-10-14 09:53:26.098 +00:00 [DBG] Security stamp validation failed, rejecting cookie. 2020-10-14 09:53:26.107 +00:00 [INF] AuthenticationScheme: Identity.Application signed out. 2020-10-14 09:53:26.108 +00:00 [INF] AuthenticationScheme: Identity.External signed out. 2020-10-14 09:53:26.108 +00:00 [INF] AuthenticationScheme: Identity.TwoFactorUserId signed out. 2020-10-14 09:53:26.123 +00:00 [INF] Identity.Application was not authenticated. Failure message: No principal. 2020-10-14 09:53:26.321 +00:00 [INF] Identity.Application was not authenticated. Failure message: No principal. 2020-10-14 09:53:26.327 +00:00 [INF] Identity.Application was not authenticated. Failure message: No principal. 2020-10-14 09:53:26.330 +00:00 [DBG] Request path /.well-known/openid-configuration matched to endpoint type Discovery 2020-10-14 09:53:26.785 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryEndpoint 2020-10-14 09:53:26.786 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2020-10-14 09:53:26.787 +00:00 [DBG] Start discovery request 2020-10-14 09:53:27.192 +00:00 [INF] Request finished in 5418.409ms 200 application/json; charset=UTF-8 2020-10-14 09:53:27.252 +00:00 [INF] Request starting HTTP/2.0 GET https://xxxxxx.azure.com/identityserver/.well-known/openid-configuration/jwks
    2020-10-14 09:53:27.272 +00:00 [DBG] Request path /.well-known/openid-configuration/jwks matched to endpoint type Discovery 2020-10-14 09:53:27.297 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryKeyEndpoint 2020-10-14 09:53:27.297 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks 2020-10-14 09:53:27.298 +00:00 [DBG] Start key discovery request 2020-10-14 09:53:27.312 +00:00 [INF] Request finished in 60.1142ms 200 application/jwk-set+json; charset=UTF-8 2020-10-14 10:14:14.550 +00:00 [DBG] Stopped background worker: Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker 2020-10-14 10:14:14.551 +00:00 [INF] Application is shutting down...

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can we use zoom to remotely? my email shiwei.liang@volosoft.com

  • User Avatar
    0
    alexander.nikonov created

    Yes, sure. Could you please let me know convenient time intervals for you in UTC? As I understand, we have a noticable timeshift. I'm also leaving for vacation tomorrow till 26th of Oct.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I'm in UTC+8 time zone. I'm free now and have one hour time. If you are free, we can start.

  • User Avatar
    0
    alexander.nikonov created

    Hi. Thank you for assisting. I took another look at the existing code and have managed to make Login work. But it's rather a temporary solution with some hardcode changes. So I would like to clarify the following questions:

    1. how to install a 'normal' free development SSL certificate on the published Azure site so the browser considered it 'correct' and did not raise relevant exceptions? Current temporary solution which I don't like is the following change in HttpApiHostModule:

                   options.JwtBackChannelHandler = new HttpClientHandler
                   {
                       //TODO: use valid certificate in future and change the logic
                       ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
                   };
      
    2. if I manage to install a normal certificate and would need to issue custom claims - do I need to add this:

                   var securityStampClaimType = new ClaimsIdentityOptions().SecurityStampClaimType;
                   var claims = new List<Claim>()
                   {
                       ...
                       new Claim(securityStampClaimType, abpUser.SecurityStamp)
                   };
      
    3. there is the following issue in the IdentityServer - because of it, it's not possible to open tenant switching popup (path by default is incorrect). Is it a bug or there is a way to set up 'IdentityServer' web app name somehow instead of hardcoding it?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    1. I think you should to use valid SSL certificate. You can use https://letsencrypt.org/
    2. You don't need this.
    3. Can you share some screenshots?
  • User Avatar
    0
    alexander.nikonov created

    Hi. I am back. Regarding #3 - please, have a look: 'IdentityServer' part is missing in the constructed path, so pressing "Switch" button causes the error and the dialog is not opened (as I found out, it's due to the problem in abp.js, as mentioned before):

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    See https://github.com/abpframework/abp/pull/4101#issuecomment-636648083

  • User Avatar
    0
    alexander.nikonov created

    Thank you! The problem with popup seems to be gone. However, I cannot close the ticket yet, since there are still the issues related to paths.

    For instance, if I am getting exception while trying to use "Forgot password", I am represented the following page:

    However, the link to "Go to the homepage" is incorrect - it points to the root folder (https://XXXXXX.cloudapp.azure.com) instead of Angular website (https://XXXXXX.cloudapp.azure.com/CentralTools). Is there a dedicated settings for this link? Because seems like I provided Angular website name in many places, as required...

    Another issue is related to /assets path, it is also missing web application name:

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Does http://codebuckets.com/2018/05/26/hosting-angular-in-iis-under-an-existing-website/ work for you?

  • User Avatar
    0
    alexander.nikonov created

    I refrain from making everything suggested there, even though we do in fact use the same ng build options as described in the article. But as to angular.json file, we are using the settings suggested by ABP:

    "assets": ["src/favicon.ico", "src/assets"]

    instead of the ones suggested in the article:

    "assets": ["/assets"]

    So we would prefer to use ABP settings (or even hooks to resolve some confirmed issues, but suggested by your team instead of guys not related to ABP framework development).

    So is there some solution or workaround related to correct /assets path in the published site? I asked on ABP github, but got no reaction...

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I can help you remotely. shiwei.liang@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11