Open Closed

publishing web project #5909


User avatar
0
SelcukDuran created
  • ABP Framework version: v 7.3.2
  • UI Type: MVC
  • Database System: EF Core ORACLE
  • Tiered (for MVC) or Auth Server Separated (for Angular): TIERED
  • Exception message and full stack trace:

still cant publish web project.. published auth and host api project but having problems in web project publishing on iis

2023-10-03 16:59:48.518 +03:00 [INF] Starting web host. 2023-10-03 16:59:49.429 +03:00 [INF] Loaded ABP modules: 2023-10-03 16:59:49.430 +03:00 [INF] - OBINEX.Web.OBINEXWebModule 2023-10-03 16:59:49.430 +03:00 [INF] - OBINEX.OBINEXHttpApiClientModule 2023-10-03 16:59:49.430 +03:00 [INF] - OBINEX.OBINEXApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - OBINEX.OBINEXDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Validation.AbpValidationModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Settings.AbpSettingsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Security.AbpSecurityModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Data.AbpDataModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Threading.AbpThreadingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Json.SystemTextJson.AbpJsonSystemTextJsonModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Json.AbpJsonAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Timing.AbpTimingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityProDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Features.AbpFeaturesModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Ldap.AbpLdapAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.OpenIddict.AbpOpenIddictProDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.OpenIddict.AbpOpenIddictDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Saas.SaasDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Payment.AbpPaymentDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Json.AbpJsonModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Guids.AbpGuidsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Caching.AbpCachingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Domain.AbpDddDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Gdpr.AbpGdprDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainSharedModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Saas.Host.SaasHostApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Payment.AbpPaymentApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.OpenIddict.AbpOpenIddictProApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Account.AbpAccountPublicApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Account.AbpAccountSharedApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Account.AbpAccountAdminApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Gdpr.AbpGdprApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementApplicationContractsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityHttpApiClientModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Http.Client.AbpHttpClientModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Http.AbpHttpModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Minify.AbpMinifyModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule 2023-10-03 16:59:49.430 +03:00 [INF] - Volo.Abp.RemoteServices.AbpRemoteServicesModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Saas.Host.SaasHostHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.OpenIddict.AbpOpenIddictProHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Account.AbpAccountAdminHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Account.AbpAccountPublicHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Gdpr.AbpGdprHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementHttpApiClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - OBINEX.OBINEXHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.UI.AbpUiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.PermissionManagement.HttpApi.AbpPermissionManagementHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.OpenIddict.AbpOpenIddictProHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Account.AbpAccountAdminHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Saas.Host.SaasHostHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Gdpr.AbpGdprHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementHttpApiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Account.Public.Web.Impersonation.AbpAccountPublicWebImpersonationModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Authentication.JwtBearer.AbpAspNetCoreAuthenticationJwtBearerModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Authentication.OpenIdConnect.AbpAspNetCoreAuthenticationOpenIdConnectModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Authentication.OAuth.AbpAspNetCoreAuthenticationOAuthModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Account.Pro.Public.Web.Shared.AbpAccountPublicWebSharedModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityProDomainModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Ldap.AbpLdapModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Gdpr.AbpGdprAbstractionsModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.Client.AbpAspNetCoreMvcClientModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.Client.AbpAspNetCoreMvcClientCommonModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Http.Client.Web.AbpHttpClientWebModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementWebModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule 2023-10-03 16:59:49.431 +03:00 [INF] - Volo.Abp.SettingManagement.Web.AbpSettingManagementWebModule


28 Answer(s)
  • User Avatar
    0
    SelcukDuran created

    log file continues ...

    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.Account.Admin.Web.AbpAccountAdminWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]     - Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.Http.Client.IdentityModel.Web.AbpHttpClientIdentityModelWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]     - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule
    2023-10-03 16:59:49.431 +03:00 [INF]       - Volo.Abp.IdentityModel.AbpIdentityModelModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.Identity.Web.AbpIdentityWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]     - Volo.Abp.PermissionManagement.Web.AbpPermissionManagementWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.AuditLogging.Web.AbpAuditLoggingWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Saas.Host.SaasHostWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.OpenIddict.Pro.Web.AbpOpenIddictProWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.AbpAspNetCoreMvcUiLeptonXThemeModule
    2023-10-03 16:59:49.431 +03:00 [INF]     - Volo.Abp.LeptonX.Shared.AbpAspNetCoreLeptonXSharedModule
    2023-10-03 16:59:49.431 +03:00 [INF]     - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.LanguageManagement.LanguageManagementWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.TextTemplateManagement.Web.TextTemplateManagementWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.Gdpr.Web.AbpGdprWebModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.Swashbuckle.AbpSwashbuckleModule
    2023-10-03 16:59:49.431 +03:00 [INF]   - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
    2023-10-03 16:59:49.898 +03:00 [INF] Initialized all ABP modules.
    2023-10-03 16:59:49.927 +03:00 [INF] Application started. Press Ctrl+C to shut down.
    2023-10-03 16:59:49.927 +03:00 [INF] Hosting environment: Production
    2023-10-03 16:59:49.928 +03:00 [INF] Content root path: C:\inetpub\wwwroot\Obinex\Web
    2023-10-03 16:59:49.938 +03:00 [INF] Request starting HTTP/1.1 GET https://www.obinex.com/ - -
    2023-10-03 16:59:50.013 +03:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2023-10-03 16:59:50.017 +03:00 [INF] Start processing HTTP request GET https://apihost.obinex.com/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
    2023-10-03 16:59:50.017 +03:00 [INF] Sending HTTP request GET https://apihost.obinex.com/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
    2023-10-03 16:59:50.092 +03:00 [ERR] Connection ID "18374686540606472194", Request ID "4000000b-000e-ff00-b63f-84710c7967bb": An unhandled exception was thrown by the application.
    Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The SSL connection could not be established, see inner exception.) See the inner exception for details.
     ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
     ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
       at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
       at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
       at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
       --- End of inner exception stack trace ---
       at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
       at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter`1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken)
       at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
       at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendAsync>g__Core|5_0(HttpRequestMessage request, CancellationToken cancellationToken)
       at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendAsync>g__Core|5_0(HttpRequestMessage request, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
       --- End of inner exception stack trace ---
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](ClientProxyRequestContext requestContext)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments)
       at Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies.AbpApplicationConfigurationClientProxy.GetAsync(ApplicationConfigurationRequestOptions options)
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetRemoteConfigurationAsync()
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.<GetAsync>b__19_0()
       at Volo.Abp.Caching.DistributedCache`2.GetOrAddAsync(TCacheKey key, Func`1 factory, Func`1 optionsFactory, Nullable`1 hideErrors, Boolean considerUow, CancellationToken token)
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync()
       at Volo.Abp.AspNetCore.Mvc.Client.RemoteLanguageProvider.GetLanguagesAsync()
       at Microsoft.AspNetCore.RequestLocalization.DefaultAbpRequestLocalizationOptionsProvider.GetLocalizationOptionsAsync()
       at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
    2023-10-03 16:59:50.101 +03:00 [INF] Request finished HTTP/1.1 GET https://www.obinex.com/ - - - 500 - - 163.6457ms
    2023-10-03 16:59:52.241 +03:00 [INF] Request starting HTTP/1.1 GET https://www.obinex.com/ - -
    2023-10-03 16:59:52.248 +03:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2023-10-03 16:59:52.248 +03:00 [INF] Start processing HTTP request GET https://apihost.obinex.com/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
    2023-10-03 16:59:52.248 +03:00 [INF] Sending HTTP request GET https://apihost.obinex.com/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
    2023-10-03 16:59:52.253 +03:00 [ERR] Connection ID "18374686540606472194", Request ID "4000000c-000e-ff00-b63f-84710c7967bb": An unhandled exception was thrown by the application.
    Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The SSL connection could not be established, see inner exception.) See the inner exception for details.
     ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
     ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
       at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
       at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
       at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
       --- End of inner exception stack trace ---
       at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
       at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter`1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken)
       at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
       at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.&lt;SendAsync&gt;g__Core|5_0(HttpRequestMessage request, CancellationToken cancellationToken)
       at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.&lt;SendAsync&gt;g__Core|5_0(HttpRequestMessage request, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.&lt;SendAsync&gt;g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
       --- End of inner exception stack trace ---
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](ClientProxyRequestContext requestContext)
       at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments)
       at Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies.AbpApplicationConfigurationClientProxy.GetAsync(ApplicationConfigurationRequestOptions options)
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetRemoteConfigurationAsync()
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.&lt;GetAsync&gt;b__19_0()
       at Volo.Abp.Caching.DistributedCache`2.GetOrAddAsync(TCacheKey key, Func`1 factory, Func`1 optionsFactory, Nullable`1 hideErrors, Boolean considerUow, CancellationToken token)
       at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync()
       at Volo.Abp.AspNetCore.Mvc.Client.RemoteLanguageProvider.GetLanguagesAsync()
       at Microsoft.AspNetCore.RequestLocalization.DefaultAbpRequestLocalizationOptionsProvider.GetLocalizationOptionsAsync()
       at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.&lt;&gt;c__DisplayClass6_1.&lt;&lt;UseMiddlewareInterface&gt;b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
    2023-10-03 16:59:52.254 +03:00 [INF] Request finished HTTP/1.1 GET https://www.obinex.com/ - - - 500 - - 12.9534ms
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello selcukdurann@gmail.com,

    Please do have look to the similar issue https://github.com/abpframework/abp/issues/11844

    Could you please check once your SSL certificate whether it is trusted or not ?

    Please let me know if anything else needed

    Thank you, Anjali

  • User Avatar
    0
    SelcukDuran created

    Hello selcukdurann@gmail.com,

    Please do have look to the similar issue https://github.com/abpframework/abp/issues/11844

    Could you please check once your SSL certificate whether it is trusted or not ?

    Please let me know if anything else needed

    Thank you, Anjali

    got this error on login button

  • User Avatar
    0
    SelcukDuran created

    web app config

    "Default": {
          "BaseUrl": "http://apihost.obinex.com.tr/"
        },
    

    cant start with https of this subdomain.. is it looking for same domains for entire application??

    web log

    
    2023-10-09 09:08:25.567 +03:00 [ERR] IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
       at OBINEX.Web.Pages.IndexModel.OnPostLoginAsync() in C:\PROJELER\Obinex\src\OBINEX.Web\Pages\Index.cshtml.cs:line 15
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    2023-10-09 09:08:25.568 +03:00 [INF] Executed page /Index in 2.2567ms
    2023-10-09 09:08:25.568 +03:00 [INF] Executed endpoint '/Index'
    2023-10-09 09:08:25.568 +03:00 [ERR] An unhandled exception has occurred while executing the request.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
       at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
       at OBINEX.Web.Pages.IndexModel.OnPostLoginAsync() in C:\PROJELER\Obinex\src\OBINEX.Web\Pages\Index.cshtml.cs:line 15
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
       at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
       at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
       at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
    2023-10-09 09:08:25.568 +03:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
    2023-10-09 09:08:25.568 +03:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared).```
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    is your Auth Server up and running on this https://auth.obinex.com.tr can you hit https://auth.obinex.com.tr/.well-known/openid-configuration on your browser and see if it works please check URL of AuthServer.Authority throughout application do you have the SSL attached the iis site where authserver is server? also try flushing Redis server

    flushall

  • User Avatar
    0
    SelcukDuran created
    {
      "issuer": "https://auth.obinex.com.tr/",
      "authorization_endpoint": "https://auth.obinex.com.tr/connect/authorize",
      "token_endpoint": "https://auth.obinex.com.tr/connect/token",
      "introspection_endpoint": "https://auth.obinex.com.tr/connect/introspect",
      "end_session_endpoint": "https://auth.obinex.com.tr/connect/logout",
      "revocation_endpoint": "https://auth.obinex.com.tr/connect/revocat",
      "userinfo_endpoint": "https://auth.obinex.com.tr/connect/userinfo",
      "device_authorization_endpoint": "https://auth.obinex.com.tr/device",
      "jwks_uri": "https://auth.obinex.com.tr/.well-known/jwks",
      "grant_types_supported": [
        "authorization_code",
        "implicit",
        "password",
        "client_credentials",
        "refresh_token",
        "urn:ietf:params:oauth:grant-type:device_code",
        "LinkLogin",
        "Impersonation"
      ],
      "response_types_supported": [
        "code",
        "code id_token",
        "code id_token token",
        "code token",
        "id_token",
        "id_token token",
        "token",
        "none"
      ],
      "response_modes_supported": [
        "form_post",
        "fragment",
        "query"
      ],
      "scopes_supported": [
        "openid",
        "offline_access",
        "email",
        "profile",
        "phone",
        "roles",
        "address",
        "OBINEX"
      ],
      "claims_supported": [
        "aud",
        "exp",
        "iat",
        "iss",
        "sub"
      ],
      "id_token_signing_alg_values_supported": [
        "RS256"
      ],
      "code_challenge_methods_supported": [
        "S256"
      ],
      "subject_types_supported": [
        "public"
      ],
      "token_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "introspection_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "revocation_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "device_authorization_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "claims_parameter_supported": false,
      "request_parameter_supported": false,
      "request_uri_parameter_supported": false,
      "authorization_response_iss_parameter_supported": true
    }
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    is it possible to share the configs of project. like appsettings.json of mvc, authserver and httpi.host ?

  • User Avatar
    0
    SelcukDuran created

    api host

    {
      "App": {
        "SelfUrl": "https://apihost.obinex.com.tr",
        "CorsOrigins": "https://*.OBINEX.com.tr",
        "DisablePII": "false",
        "HealthCheckUrl": "/health-status"
      },
      "ConnectionStrings": {
        "Default": "Data Source=127.0.0.1:1521/orcl;User ID=obinex;Password=123"
      },
      "Redis": {
        "Configuration": "127.0.0.1"
      },
      "AuthServer": {
        "Authority": "https://auth.obinex.com.tr/",
        "RequireHttpsMetadata": "true",
        "SwaggerClientId": "OBINEX_Swagger"
      },
      "StringEncryption": {
        "DefaultPassPhrase": "123"
      }
    }
    
    

    auth

    {
      "App": {
        "SelfUrl": "https://auth.obinex.com.tr/",
        "CorsOrigins": "https://*.obinex.com.tr,https://apihost.obinex.com.tr/",
        "RedirectAllowedUrls": "https://obinex.com.tr/",
        "DisablePII": "false"
      },
      "ConnectionStrings": {
        "Default": "Data Source=127.0.0.1:1521/orcl;User ID=obinex;Password=123"
      },
      "AuthServer": {
        "Authority": "https://auth.obinex.com.tr",
        "RequireHttpsMetadata": "true"    
      },
      "StringEncryption": {
        "DefaultPassPhrase": "123"
      },
      "Redis": {
        "Configuration": "127.0.0.1"
      }
    }
    
    

    web

    {
      "App": {
        "SelfUrl": "https://www.obinex.com.tr",
        "DisablePII": "false"
      },
      "RemoteServices": {
        "Default": {
          "BaseUrl": "http://apihost.obinex.com.tr/"
        },
        "AbpAccountPublic": {
          "BaseUrl": "https://auth.obinex.com.tr/"
        }
      },
      "Redis": {
        "Configuration": "127.0.0.1"
      },
      "AuthServer": {
        "Authority": "https://auth.obinex.com.tr",
        "RequireHttpsMetadata": "true",
        "ClientId": "OBINEX_Web",
        "ClientSecret": "123"
      },
      "StringEncryption": {
        "DefaultPassPhrase": "123"
      }
    }
    
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    https should be there in RemoteServices.Default.BaseUrl like - https://apihost.obinex.com.tr/

    Can you please check database, whether URL's are updated or not

    Check whether login is working from AuthServer / Swagger application

    Check whether if there is any firewall settings, which is blocking connection between web app and authserver.

    Thanks, Anjali

  • User Avatar
    0
    SelcukDuran created

    i can login from swagger app..

  • User Avatar
    0
    SelcukDuran created

    trying to access one swagger method

    here is the api log page

    2023-10-10 11:09:45.693 +03:00 [INF] Request starting HTTP/1.1 GET https://apihost.obinex.com.tr/api/app/direct-pay-kKTCELLGSMReconciliation-details - -
    2023-10-10 11:09:45.694 +03:00 [ERR] Exception occurred while processing message.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    2023-10-10 11:09:45.694 +03:00 [ERR] Connection ID "17726168142725513280", Request ID "40000047-0002-f600-b63f-84710c7967bb": An unhandled exception was thrown by the application.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.&lt;&gt;c__DisplayClass6_1.&lt;&lt;UseMiddlewareInterface&gt;b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.&lt;&gt;c__DisplayClass6_1.&lt;&lt;UseMiddlewareInterface&gt;b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
    2023-10-10 11:09:45.694 +03:00 [INF] Request finished HTTP/1.1 GET https://apihost.obinex.com.tr/api/app/direct-pay-kKTCELLGSMReconciliation-details - - - 500 - - 0.8690ms
    

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    can you update you HttpApiHostModule ConfigureAuthentication with this code

    the MetaAddress will be your http://apihost.obinex.com.tr/

    also change RequireHttpsMetadata to false in appsettings

    let me know if you get any errors after this

  • User Avatar
    0
    SelcukDuran created

    auth log..

    
    2023-10-11 11:29:07.278 +03:00 [INF] Request finished HTTP/2 POST https://auth.obinex.com.tr/connect/token application/x-www-form-urlencoded 185 - 200 1221 application/json;charset=UTF-8 254.6179ms
    2023-10-11 11:30:31.707 +03:00 [INF] Request starting HTTP/2 GET https://auth.obinex.com.tr/.well-known/openid-configuration - -
    2023-10-11 11:30:31.708 +03:00 [DBG] The request path /.well-known/openid-configuration does not match a supported file type
    2023-10-11 11:30:31.708 +03:00 [DBG] No candidates found for the request path '/.well-known/openid-configuration'
    2023-10-11 11:30:31.709 +03:00 [DBG] Request did not match any endpoints
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri.
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri.
    2023-10-11 11:30:31.709 +03:00 [INF] The request URI matched a server endpoint: "Configuration".
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType.
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType.
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement.
    2023-10-11 11:30:31.709 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader.
    2023-10-11 11:30:31.720 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ExtractConfigurationRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ExtractGetRequest`1[[OpenIddict.Server.OpenIddictServerEvents+ExtractConfigurationRequestContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.720 +03:00 [INF] The configuration request was successfully extracted: {}.
    2023-10-11 11:30:31.720 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+ExtractConfigurationRequest.
    2023-10-11 11:30:31.721 +03:00 [INF] The configuration request was successfully validated.
    2023-10-11 11:30:31.721 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+ValidateConfigurationRequest.
    2023-10-11 11:30:31.723 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachIssuer.
    2023-10-11 11:30:31.723 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachEndpoints.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachGrantTypes.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachResponseModes.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachResponseTypes.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachClientAuthenticationMethods.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachCodeChallengeMethods.
    2023-10-11 11:30:31.724 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachScopes.
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728015 ThreadID:40  (ENTRY)   OracleExecutionStrategyFactory.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728054 ThreadID:40  (EXIT)    OracleExecutionStrategyFactory.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728061 ThreadID:40  (EXIT)    OracleExecutionStrategy.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728088 ThreadID:40  (ENTRY)   OracleRelationalConnection.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728096 ThreadID:40  (EXIT)    OracleRelationalConnection.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728115 ThreadID:40  (ENTRY)   OracleConventionSetBuilder.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728122 ThreadID:40  (EXIT)    OracleConventionSetBuilder.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728479 ThreadID:40  (ENTRY)   OracleModificationCommandBatchFactory.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728528 ThreadID:40  (EXIT)    OracleModificationCommandBatchFactory.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728585 ThreadID:40  (ENTRY)   OracleValueGeneratorSelector.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] 2023-10-11 11:30:31.728598 ThreadID:40  (EXIT)    OracleValueGeneratorSelector.ctor() 
    2023-10-11 11:30:31.728 +03:00 [DBG] Entity Framework Core 7.0.1 initialized 'OpenIddictProDbContext' using provider 'Oracle.EntityFrameworkCore:7.0.21.1-20221205' with options: QuerySplittingBehavior=SplitQuery 
    2023-10-11 11:30:31.729 +03:00 [DBG] Compiling query expression: 
    'DbSet&lt;OpenIddictScope&gt;()'
    2023-10-11 11:30:31.735 +03:00 [DBG] Generated query execution expression: 
    'queryContext => 
    {
        queryContext.AddParameter(
            name: "__ef_filter__p_0", 
            value: (object)Invoke(queryContext => (object)!(((OpenIddictProDbContext)queryContext.Context).IsSoftDeleteFilterEnabled), queryContext));
        return new SplitQueryingEnumerable&lt;OpenIddictScope&gt;(
            (RelationalQueryContext)queryContext, 
            RelationalCommandCache.QueryExpression(
                Projection Mapping:
                    EmptyProjectionMember -> Dictionary&lt;IProperty, int&gt; { [Property: OpenIddictScope.Id (Guid) Required PK AfterSave:Throw, 0], [Property: OpenIddictScope.ConcurrencyStamp (string) Concurrency MaxLength(40), 1], [Property: OpenIddictScope.CreationTime (DateTime) Required, 2], [Property: OpenIddictScope.CreatorId (Guid?), 3], [Property: OpenIddictScope.DeleterId (Guid?), 4], [Property: OpenIddictScope.DeletionTime (DateTime?), 5], [Property: OpenIddictScope.Description (string), 6], [Property: OpenIddictScope.Descriptions (string), 7], [Property: OpenIddictScope.DisplayName (string), 8], [Property: OpenIddictScope.DisplayNames (string), 9], [Property: OpenIddictScope.ExtraProperties (ExtraPropertyDictionary), 10], [Property: OpenIddictScope.IsDeleted (bool) Required ValueGenerated.OnAdd, 11], [Property: OpenIddictScope.LastModificationTime (DateTime?), 12], [Property: OpenIddictScope.LastModifierId (Guid?), 13], [Property: OpenIddictScope.Name (string) Index MaxLength(200), 14], [Property: OpenIddictScope.Properties (string), 15], [Property: OpenIddictScope.Resources (string), 16] }
                SELECT o.Id, o.ConcurrencyStamp, o.CreationTime, o.CreatorId, o.DeleterId, o.DeletionTime, o.Description, o.Descriptions, o.DisplayName, o.DisplayNames, o.ExtraProperties, o.IsDeleted, o.LastModificationTime, o.LastModifierId, o.Name, o.Properties, o.Resources
                FROM OpenIddictScopes AS o
                WHERE @__ef_filter__p_0 || Not(o.IsDeleted)), 
            ReaderColumn[] { ReaderColumn&lt;Guid&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;DateTime&gt;, ReaderColumn&lt;Guid&gt;, ReaderColumn&lt;Guid&gt;, ReaderColumn&lt;DateTime&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;bool&gt;, ReaderColumn&lt;DateTime&gt;, ReaderColumn&lt;Guid&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt;, ReaderColumn&lt;object&gt; }, 
            Func&lt;QueryContext, DbDataReader, ResultContext, SplitQueryResultCoordinator, OpenIddictScope&gt;, 
            null, 
            null, 
            Volo.Abp.OpenIddict.EntityFrameworkCore.OpenIddictProDbContext, 
            False, 
            False, 
            True
        );
    }'
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735456 ThreadID:40  (ENTRY)   OracleExecutionStrategy.ExecuteAsync() 
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735750 ThreadID:40  (ENTRY)   OracleRelationalCommand.ExecuteReaderAsync() 
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735771 ThreadID:40  (ENTRY)   OracleRelationalCommand.CreateCommand() 
    2023-10-11 11:30:31.735 +03:00 [DBG] Creating DbCommand for 'ExecuteReader'.
    2023-10-11 11:30:31.735 +03:00 [DBG] Creating DbConnection.
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735812 ThreadID:40  (ENTRY)   OracleRelationalConnection.CreateDbConnection() 
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735858 ThreadID:40  (EXIT)    OracleRelationalConnection.CreateDbConnection() 
    2023-10-11 11:30:31.735 +03:00 [DBG] Created DbConnection. (0ms).
    2023-10-11 11:30:31.735 +03:00 [DBG] Created DbCommand for 'ExecuteReader' (0ms).
    2023-10-11 11:30:31.735 +03:00 [DBG] 2023-10-11 11:30:31.735900 ThreadID:40  (EXIT)    OracleRelationalCommand.CreateCommand() 
    2023-10-11 11:30:31.735 +03:00 [DBG] Opening connection to database '' on server '127.0.0.1:1521/orcl'.
    2023-10-11 11:30:31.736 +03:00 [DBG] Opened connection to database '' on server '127.0.0.1:1521/orcl'.
    2023-10-11 11:30:31.736 +03:00 [DBG] 2023-10-11 11:30:31.736239 ThreadID:40  (SQL)     OracleRelationalCommand.ExecuteReaderAsync() : SELECT "o"."Id", "o"."ConcurrencyStamp", "o"."CreationTime", "o"."CreatorId", "o"."DeleterId", "o"."DeletionTime", "o"."Description", "o"."Descriptions", "o"."DisplayName", "o"."DisplayNames", "o"."ExtraProperties", "o"."IsDeleted", "o"."LastModificationTime", "o"."LastModifierId", "o"."Name", "o"."Properties", "o"."Resources" FROM "OpenIddictScopes" "o" WHERE ((:ef_filter__p_0 &lt;&gt; 0) OR ("o"."IsDeleted" = 0))
    2023-10-11 11:30:31.736 +03:00 [DBG] Executing DbCommand [Parameters=[:ef_filter__p_0='?' (DbType = Byte)], CommandType='"Text"', CommandTimeout='0']
    SELECT "o"."Id", "o"."ConcurrencyStamp", "o"."CreationTime", "o"."CreatorId", "o"."DeleterId", "o"."DeletionTime", "o"."Description", "o"."Descriptions", "o"."DisplayName", "o"."DisplayNames", "o"."ExtraProperties", "o"."IsDeleted", "o"."LastModificationTime", "o"."LastModifierId", "o"."Name", "o"."Properties", "o"."Resources"
    FROM "OpenIddictScopes" "o"
    WHERE ((:ef_filter__p_0 &lt;&gt; 0) OR ("o"."IsDeleted" = 0))
    2023-10-11 11:30:31.737 +03:00 [INF] Executed DbCommand (1ms) [Parameters=[:ef_filter__p_0='?' (DbType = Byte)], CommandType='"Text"', CommandTimeout='0']
    SELECT "o"."Id", "o"."ConcurrencyStamp", "o"."CreationTime", "o"."CreatorId", "o"."DeleterId", "o"."DeletionTime", "o"."Description", "o"."Descriptions", "o"."DisplayName", "o"."DisplayNames", "o"."ExtraProperties", "o"."IsDeleted", "o"."LastModificationTime", "o"."LastModifierId", "o"."Name", "o"."Properties", "o"."Resources"
    FROM "OpenIddictScopes" "o"
    WHERE ((:ef_filter__p_0 &lt;&gt; 0) OR ("o"."IsDeleted" = 0))
    2023-10-11 11:30:31.737 +03:00 [DBG] 2023-10-11 11:30:31.737461 ThreadID:40  (EXIT)    OracleRelationalCommand.ExecuteReaderAsync() 
    2023-10-11 11:30:31.737 +03:00 [DBG] 2023-10-11 11:30:31.737487 ThreadID:40  (EXIT)    OracleExecutionStrategy.ExecuteAsync() 
    2023-10-11 11:30:31.739 +03:00 [DBG] Context 'OpenIddictProDbContext' started tracking 'OpenIddictScope' entity. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values.
    2023-10-11 11:30:31.757 +03:00 [DBG] Closing data reader to '' on server '127.0.0.1:1521/orcl'.
    2023-10-11 11:30:31.757 +03:00 [DBG] A data reader for '' on server '127.0.0.1:1521/orcl' is being disposed after spending 20ms reading results.
    2023-10-11 11:30:31.757 +03:00 [DBG] Closing connection to database '' on server '127.0.0.1:1521/orcl'.
    2023-10-11 11:30:31.757 +03:00 [DBG] Closed connection to database '' on server '127.0.0.1:1521/orcl' (0ms).
    2023-10-11 11:30:31.757 +03:00 [DBG] DetectChanges starting for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] DetectChanges completed for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] DetectChanges starting for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] DetectChanges completed for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] SaveChanges starting for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] DetectChanges starting for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] DetectChanges completed for 'OpenIddictProDbContext'.
    2023-10-11 11:30:31.762 +03:00 [DBG] 2023-10-11 11:30:31.762408 ThreadID:40  (ENTRY)   OracleExecutionStrategy.ExecuteAsync() 
    2023-10-11 11:30:31.762 +03:00 [DBG] 2023-10-11 11:30:31.762429 ThreadID:40  (EXIT)    OracleExecutionStrategy.ExecuteAsync() 
    2023-10-11 11:30:31.762 +03:00 [DBG] SaveChanges completed for 'OpenIddictProDbContext' with 0 entities written to the database.
    2023-10-11 11:30:31.762 +03:00 [DBG] 'OpenIddictProDbContext' disposed.
    2023-10-11 11:30:31.762 +03:00 [DBG] Disposing connection to database '' on server '127.0.0.1:1521/orcl'.
    2023-10-11 11:30:31.762 +03:00 [DBG] Disposed connection to database '' on server '' (0ms).
    2023-10-11 11:30:31.762 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by Volo.Abp.OpenIddict.Scopes.AttachScopes.
    2023-10-11 11:30:31.763 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachClaims.
    2023-10-11 11:30:31.763 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachSubjectTypes.
    2023-10-11 11:30:31.763 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachSigningAlgorithms.
    2023-10-11 11:30:31.763 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleConfigurationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+AttachAdditionalMetadata.
    2023-10-11 11:30:31.764 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+HandleConfigurationRequest.
    2023-10-11 11:30:31.765 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachHttpResponseCode`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].```
    
  • User Avatar
    0
    SelcukDuran created

    auth log continued

    
    2023-10-11 11:30:31.765 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachWwwAuthenticateHeader`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.765 +03:00 [INF] The response was successfully returned as a JSON document: {
      "issuer": "https://auth.obinex.com.tr/",
      "authorization_endpoint": "https://auth.obinex.com.tr/connect/authorize",
      "token_endpoint": "https://auth.obinex.com.tr/connect/token",
      "introspection_endpoint": "https://auth.obinex.com.tr/connect/introspect",
      "end_session_endpoint": "https://auth.obinex.com.tr/connect/logout",
      "revocation_endpoint": "https://auth.obinex.com.tr/connect/revocat",
      "userinfo_endpoint": "https://auth.obinex.com.tr/connect/userinfo",
      "device_authorization_endpoint": "https://auth.obinex.com.tr/device",
      "jwks_uri": "https://auth.obinex.com.tr/.well-known/jwks",
      "grant_types_supported": [
        "authorization_code",
        "implicit",
        "password",
        "client_credentials",
        "refresh_token",
        "urn:ietf:params:oauth:grant-type:device_code",
        "LinkLogin",
        "Impersonation"
      ],
      "response_types_supported": [
        "code",
        "code id_token",
        "code id_token token",
        "code token",
        "id_token",
        "id_token token",
        "token",
        "none"
      ],
      "response_modes_supported": [
        "form_post",
        "fragment",
        "query"
      ],
      "scopes_supported": [
        "openid",
        "offline_access",
        "email",
        "profile",
        "phone",
        "roles",
        "address",
        "OBINEX"
      ],
      "claims_supported": [
        "aud",
        "exp",
        "iat",
        "iss",
        "sub"
      ],
      "id_token_signing_alg_values_supported": [
        "RS256"
      ],
      "code_challenge_methods_supported": [
        "S256"
      ],
      "subject_types_supported": [
        "public"
      ],
      "token_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "introspection_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "revocation_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "device_authorization_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post"
      ],
      "claims_parameter_supported": false,
      "request_parameter_supported": false,
      "request_uri_parameter_supported": false,
      "authorization_response_iss_parameter_supported": true
    }.
    2023-10-11 11:30:31.766 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ProcessJsonResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.766 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext was marked as handled by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ProcessJsonResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyConfigurationResponseContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.766 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Discovery+ApplyConfigurationResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.766 +03:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was marked as handled by OpenIddict.Server.OpenIddictServerHandlers+Discovery+ApplyConfigurationResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext, OpenIddict.Server, Version=4.4.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
    2023-10-11 11:30:31.766 +03:00 [INF] Request finished HTTP/2 GET https://auth.obinex.com.tr/.well-known/openid-configuration - - - 200 2189 application/json;charset=UTF-8 59.1403ms
    2023-10-11 11:30:31.766 +03:00 [DBG] Connection ID "17870283373751042545" disconnecting.
    

    apihost log

    
    2023-10-11 11:30:14.953 +03:00 [INF] Request starting HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - -
    2023-10-11 11:30:14.953 +03:00 [ERR] Exception occurred while processing message.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
    2023-10-11 11:30:14.953 +03:00 [ERR] Connection ID "17942340929134264408", Request ID "40000059-0003-f900-b63f-84710c7967bb": An unhandled exception was thrown by the application.
    System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://auth.obinex.com.tr/.well-known/openid-configuration'.
       at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
       at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.&lt;&gt;c__DisplayClass6_1.&lt;&lt;UseMiddlewareInterface&gt;b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.&lt;&gt;c__DisplayClass6_1.&lt;&lt;UseMiddlewareInterface&gt;b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()
    2023-10-11 11:30:14.954 +03:00 [INF] Request finished HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - - - 500 - - 1.0482ms```
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello selcukdurann@gmail.com,

    can you please try to update the given code block in API Host Module.cs file

        private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
        {
            context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
                .AddJwtBearer(options =>
                {
                    options.Authority = configuration["AuthServer:Authority"];
                    options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);
                    options.Audience = "tiered732";
                    options.BackchannelHttpHandler = GetHandler();
                });
        }
        private static HttpClientHandler GetHandler()
        {
            var handler = new HttpClientHandler();
            handler.ClientCertificateOptions = ClientCertificateOption.Manual;
            handler.SslProtocols = SslProtocols.Tls12;
            handler.ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true;
            return handler;
        }
    

    please do let me know if it helps you

    Thank you, Anjali

  • User Avatar
    0
    SelcukDuran created

    after changing apihostmodule cs

    2023-10-13 16:11:37.874 +03:00 [INF] Request starting HTTP/2 GET https://apihost.obinex.com.tr/abp/Swashbuckle/SetCsrfCookie - -
    2023-10-13 16:11:38.104 +03:00 [INF] Failed to validate the token.
    Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable`1 audiences, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateAudience(IEnumerable`1 audiences, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    2023-10-13 16:11:38.105 +03:00 [INF] Bearer was not authenticated. Failure message: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
    2023-10-13 16:11:38.106 +03:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
    2023-10-13 16:11:38.108 +03:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle).
    2023-10-13 16:11:38.114 +03:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 5.3971ms
    2023-10-13 16:11:38.114 +03:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
    2023-10-13 16:11:38.117 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-13 16:11:38.117 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-13 16:11:38.117 +03:00 [INF] Request finished HTTP/2 GET https://apihost.obinex.com.tr/abp/Swashbuckle/SetCsrfCookie - - - 204 - - 243.0528ms
    2023-10-13 16:11:38.209 +03:00 [INF] Request starting HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - -
    2023-10-13 16:11:38.211 +03:00 [INF] Failed to validate the token.
    Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable`1 audiences, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateAudience(IEnumerable`1 audiences, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    2023-10-13 16:11:38.211 +03:00 [INF] Bearer was not authenticated. Failure message: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
    2023-10-13 16:11:38.211 +03:00 [INF] Executing endpoint 'OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi)'
    2023-10-13 16:11:38.220 +03:00 [INF] Route matched with {area = "app", controller = "DirectPayITBusinessPartnerKKTCELL", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[OBINEX.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLDto]] GetListAsync(OBINEX.DirectPayITBusinessPartnerKKTCELLS.GetDirectPayITBusinessPartnerKKTCELLSInput) on controller OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController (OBINEX.HttpApi).
    2023-10-13 16:11:38.419 +03:00 [INF] Authorization failed. These requirements were not met:
    PermissionRequirement: OBINEX.DirectPayITBusinessPartnerKKTCELLS
    2023-10-13 16:11:38.428 +03:00 [WRN] ---------- RemoteServiceErrorInfo ----------
    {
      "code": "Volo.Authorization:010001",
      "message": "Authorization failed! Given policy has not granted.",
      "details": null,
      "data": {},
      "validationErrors": null
    }
    
    2023-10-13 16:11:38.428 +03:00 [WRN] Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
    Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
       at Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.CheckAsync(IAuthorizationService authorizationService, AuthorizationPolicy policy)
       at Volo.Abp.Authorization.MethodInvocationAuthorizationService.CheckAsync(MethodInvocationAuthorizationContext context)
       at Volo.Abp.Authorization.AuthorizationInterceptor.AuthorizeAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
       at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at lambda_method2663(Closure, Object)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    2023-10-13 16:11:38.429 +03:00 [WRN] Code:Volo.Authorization:010001
    2023-10-13 16:11:38.436 +03:00 [INF] AuthenticationScheme: Bearer was challenged.
    2023-10-13 16:11:38.436 +03:00 [INF] Executed action OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi) in 216.469ms
    2023-10-13 16:11:38.437 +03:00 [INF] Executed endpoint 'OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi)'
    2023-10-13 16:11:38.449 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-13 16:11:38.449 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-13 16:11:38.450 +03:00 [INF] Request finished HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - - - 401 - - 240.5475ms
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    Can you check if both audience are same

  • User Avatar
    0
    SelcukDuran created

    Hello selcukdurann@gmail.com,

    can you please try to update the given code block in API Host Module.cs file

        private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration) 
        { 
            context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) 
                .AddJwtBearer(options => 
                { 
                    options.Authority = configuration["AuthServer:Authority"]; 
                    options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]); 
                    options.Audience = "tiered732"; 
                    options.BackchannelHttpHandler = GetHandler(); 
                }); 
        } 
        private static HttpClientHandler GetHandler() 
        { 
            var handler = new HttpClientHandler(); 
            handler.ClientCertificateOptions = ClientCertificateOption.Manual; 
            handler.SslProtocols = SslProtocols.Tls12; 
            handler.ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true; 
            return handler; 
        } 
    

    please do let me know if it helps you

    Thank you, Anjali

    i just copied your code... i see now, audience is different.. ill try it and i will write here result..

  • User Avatar
    0
    SelcukDuran created

    these are same but still giving same error

    2023-10-17 16:21:20.615 +03:00 [INF] Request starting HTTP/2 GET https://apihost.obinex.com.tr/abp/Swashbuckle/SetCsrfCookie - -
    2023-10-17 16:21:20.791 +03:00 [INF] Failed to validate the token.
    Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable`1 audiences, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateAudience(IEnumerable`1 audiences, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    2023-10-17 16:21:20.792 +03:00 [INF] Bearer was not authenticated. Failure message: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
    2023-10-17 16:21:20.794 +03:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
    2023-10-17 16:21:20.796 +03:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle).
    2023-10-17 16:21:20.800 +03:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 4.5073ms
    2023-10-17 16:21:20.800 +03:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
    2023-10-17 16:21:20.814 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-17 16:21:20.814 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-17 16:21:20.814 +03:00 [INF] Request finished HTTP/2 GET https://apihost.obinex.com.tr/abp/Swashbuckle/SetCsrfCookie - - - 204 - - 199.1664ms
    2023-10-17 16:21:20.899 +03:00 [INF] Request starting HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - -
    2023-10-17 16:21:20.900 +03:00 [INF] Failed to validate the token.
    Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable`1 audiences, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateAudience(IEnumerable`1 audiences, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    2023-10-17 16:21:20.900 +03:00 [INF] Bearer was not authenticated. Failure message: IDX10206: Unable to validate audience. The 'audiences' parameter is empty.
    2023-10-17 16:21:20.901 +03:00 [INF] Executing endpoint 'OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi)'
    2023-10-17 16:21:20.909 +03:00 [INF] Route matched with {area = "app", controller = "DirectPayITBusinessPartnerKKTCELL", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[OBINEX.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLDto]] GetListAsync(OBINEX.DirectPayITBusinessPartnerKKTCELLS.GetDirectPayITBusinessPartnerKKTCELLSInput) on controller OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController (OBINEX.HttpApi).
    2023-10-17 16:21:21.118 +03:00 [INF] Authorization failed. These requirements were not met:
    PermissionRequirement: OBINEX.DirectPayITBusinessPartnerKKTCELLS
    2023-10-17 16:21:21.128 +03:00 [WRN] ---------- RemoteServiceErrorInfo ----------
    {
      "code": "Volo.Authorization:010001",
      "message": "Authorization failed! Given policy has not granted.",
      "details": null,
      "data": {},
      "validationErrors": null
    }
    
    2023-10-17 16:21:21.128 +03:00 [WRN] Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
    Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
       at Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.CheckAsync(IAuthorizationService authorizationService, AuthorizationPolicy policy)
       at Volo.Abp.Authorization.MethodInvocationAuthorizationService.CheckAsync(MethodInvocationAuthorizationContext context)
       at Volo.Abp.Authorization.AuthorizationInterceptor.AuthorizeAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
       at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at lambda_method2595(Closure, Object)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    2023-10-17 16:21:21.128 +03:00 [WRN] Code:Volo.Authorization:010001
    2023-10-17 16:21:21.135 +03:00 [INF] AuthenticationScheme: Bearer was challenged.
    2023-10-17 16:21:21.135 +03:00 [INF] Executed action OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi) in 226.129ms
    2023-10-17 16:21:21.135 +03:00 [INF] Executed endpoint 'OBINEX.Controllers.DirectPayITBusinessPartnerKKTCELLS.DirectPayITBusinessPartnerKKTCELLController.GetListAsync (OBINEX.HttpApi)'
    2023-10-17 16:21:21.148 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-17 16:21:21.148 +03:00 [DBG] Added 0 entity changes to the current audit log
    2023-10-17 16:21:21.149 +03:00 [INF] Request finished HTTP/2 GET https://apihost.obinex.com.tr/api/app/direct-pay-iTBusiness-partner-kKTCELLS - - - 401 - - 250.3002ms
    2023-10-17 16:21:27.668 +03:00 [DBG] Executing HealthCheck collector HostedService.
    2023-10-17 16:21:27.669 +03:00 [INF] Start processing HTTP request GET http://apihost.obinex.com.tr/health-status
    2023-10-17 16:21:27.669 +03:00 [INF] Sending HTTP request GET http://apihost.obinex.com.tr/health-status
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    Could you please create a new package and deploy it to a fresh directory within IIS

  • User Avatar
    0
    SelcukDuran created

    Hi

    Could you please create a new package and deploy it to a fresh directory within IIS

    what you mean with "create a new package" ? new solution with initial deploy? or my project deploy to a fresh directory? do i need to update db tables (OpenIddictApplications) and appsettings.json ?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    deploy your project to a fresh directory and if possible use Fresh Database and Run Migrations again

  • User Avatar
    0
    SelcukDuran created

    hi,

    i started a new tiered project with 0 configuration oracle database and new publish location..

    abp and cli version is 7.4

    AbpPublishTest my project name.. trying in local iis folder..

    is it necessary changing local hostnames for all 3 projects? like https://auth.testproject https://apihost.testproject https://web.testproject

    i started it https://localhost/AbpPublishTest/Auth https://localhost/AbpPublishTest/HostApi/swagger/index.html https://localhost/AbpPublishTest/Web/

    which one should i use for configs ?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    You can use localhost , You don't need to change hostnames

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Problem solved, We have to trust the localhost certificate.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15