Open Closed

Unable to login after upgrade to 8.1.1 #7188


User avatar
0
lan.dang created
  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

After upgrade from 7.0 to 8.1.1 I unable to login as Host admin, it always redirects to login page in many time. Can you give any idea why this happens?


34 Answer(s)
  • User Avatar
    0
    lan.dang created

    Here is log file I got [10:03:03 INF] AuthenticationScheme: Identity.Application signed in. [10:03:03 INF] {"Username": "admin", "Provider": null, "ProviderUserId": null, "SubjectId": "0441e717-29a6-164e-c62a-3a11e2724b42", "DisplayName": "admin", "Endpoint": "UI", "ClientId": null, "Category": "Authentication", "Name": "User Login Success", "EventType": "Success", "Id": 1000, "Message": null, "ActivityId": "0HN3JO8I4ONIT:0000001F", "TimeStamp": "2024-05-14T03:03:03.0000000Z", "ProcessId": 9200, "LocalIpAddress": "::1:44348", "RemoteIpAddress": "::1", "$type": "UserLoginSuccessEvent"} [10:03:03 INF] Executed handler method OnPostAsync, returned result Microsoft.AspNetCore.Mvc.RedirectResult. [10:03:03 INF] Executing RedirectResult, redirecting to /connect/authorize/callback?response_type=code&client_id=StaffApp_App&state=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20offline_access%20StaffApp&code_challenge=YDgai__eWYAIQroGRMpnEckLnNw6ritvrJWFp44s9xY&code_challenge_method=S256&nonce=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&culture=en-GB&ui-culture=en-GB. [10:03:03 INF] Executed page /Account/Login in 961.8656ms [10:03:03 INF] Executed endpoint '/Account/Login' [10:03:03 INF] Request finished HTTP/2 POST https://localhost:44348/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_type%3Dcode%26client_id%3DStaffApp_App%26state%3DbXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Dopenid%2520offline_access%2520StaffApp%26code_challenge%3DYDgai__eWYAIQroGRMpnEckLnNw6ritvrJWFp44s9xY%26code_challenge_method%3DS256%26nonce%3DbXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J%26culture%3Den-GB%26ui-culture%3Den-GB - 302 0 null 1193.4513ms [10:03:03 INF] Request starting HTTP/2 GET https://localhost:44348/connect/authorize/callback?response_type=code&client_id=StaffApp_App&state=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20offline_access%20StaffApp&code_challenge=YDgai__eWYAIQroGRMpnEckLnNw6ritvrJWFp44s9xY&code_challenge_method=S256&nonce=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&culture=en-GB&ui-culture=en-GB - null null [10:03:04 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeCallbackEndpoint for /connect/authorize/callback [10:03:04 INF] {"ClientId": "StaffApp_App", "ClientName": "StaffApp_App", "RedirectUri": "http://localhost:4200", "Endpoint": "Authorize", "SubjectId": "0441e717-29a6-164e-c62a-3a11e2724b42", "Scopes": "openid offline_access StaffApp", "GrantType": "authorization_code", "Tokens": [{"TokenType": "code", "TokenValue": "****F1C9", "$type": "Token"}], "Category": "Token", "Name": "Token Issued Success", "EventType": "Success", "Id": 2000, "Message": null, "ActivityId": "0HN3JO8I4ONIT:00000021", "TimeStamp": "2024-05-14T03:03:04.0000000Z", "ProcessId": 9200, "LocalIpAddress": "::1:44348", "RemoteIpAddress": "::1", "$type": "TokenIssuedSuccessEvent"} [10:03:04 INF] AuthenticationScheme: Identity.Application signed in. [10:03:04 INF] Request finished HTTP/2 GET https://localhost:44348/connect/authorize/callback?response_type=code&client_id=StaffApp_App&state=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20offline_access%20StaffApp&code_challenge=YDgai__eWYAIQroGRMpnEckLnNw6ritvrJWFp44s9xY&code_challenge_method=S256&nonce=bXRtU3F4NzBaUW0uYU4xRFZhaEpTdkF3d1BzUkVkRW1iUHpScExjN2Y0fn5J&culture=en-GB&ui-culture=en-GB - 302 0 null 302.4041ms [10:03:05 INF] Request starting HTTP/2 OPTIONS https://localhost:44348/.well-known/openid-configuration - null null [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Request finished HTTP/2 OPTIONS https://localhost:44348/.well-known/openid-configuration - 204 null null 0.8278ms [10:03:05 INF] Request starting HTTP/2 GET https://localhost:44348/.well-known/openid-configuration - null null [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration [10:03:05 INF] Request finished HTTP/2 GET https://localhost:44348/.well-known/openid-configuration - 200 null application/json; charset=UTF-8 60.266ms [10:03:05 INF] Request starting HTTP/2 OPTIONS https://localhost:44348/.well-known/openid-configuration/jwks - null null [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Request finished HTTP/2 OPTIONS https://localhost:44348/.well-known/openid-configuration/jwks - 204 null null 0.7995ms [10:03:05 INF] Request starting HTTP/2 GET https://localhost:44348/.well-known/openid-configuration/jwks - null null [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks [10:03:05 INF] Request finished HTTP/2 GET https://localhost:44348/.well-known/openid-configuration/jwks - 200 null application/json; charset=UTF-8 38.4494ms [10:03:05 INF] Request starting HTTP/2 OPTIONS https://localhost:44348/connect/token - null null [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Request finished HTTP/2 OPTIONS https://localhost:44348/connect/token - 204 null null 0.8598ms [10:03:05 INF] Request starting HTTP/2 POST https://localhost:44348/connect/token - application/x-www-form-urlencoded 240 [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] CORS policy execution successful. [10:03:05 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.TokenEndpoint for /connect/token [10:03:05 INF] {"ClientId": "StaffApp_App", "AuthenticationMethod": "NoSecret", "Category": "Authentication", "Name": "Client Authentication Success", "EventType": "Success", "Id": 1010, "Message": null, "ActivityId": "0HN3JO8I4ONIQ:00000025", "TimeStamp": "2024-05-14T03:03:05.0000000Z", "ProcessId": 9200, "LocalIpAddress": "::1:44348", "RemoteIpAddress": "::1", "$type": "ClientAuthenticationSuccessEvent"} [10:03:06 INF] Token request validation success, {"ClientId": "StaffApp_App", "ClientName": "StaffApp_App", "GrantType": "authorization_code", "Scopes": null, "AuthorizationCode": "****F1C9", "RefreshToken": "********", "UserName": null, "AuthenticationContextReferenceClasses": null, "Tenant": null, "IdP": null, "Raw": {"grant_type": "authorization_code", "code": "AAC676386756D222E43EC4FE9C1C735385BBBAC4F3F4E2B22815D766B2B9F1C9", "redirect_uri": "http://localhost:4200", "code_verifier": "bmRsOWhmLTdIYUhwU3l3dTR-Zm0yUl9tUkJ6djlYUTR4OWIzSktUSTdES25s", "client_id": "StaffApp_App"}, "$type": "TokenRequestValidationLog"} [10:03:06 INF] {"ClientId": "StaffApp_App", "ClientName": "StaffApp_App", "RedirectUri": null, "Endpoint": "Token", "SubjectId": "0441e717-29a6-164e-c62a-3a11e2724b42", "Scopes": "openid offline_access StaffApp", "GrantType": "authorization_code", "Tokens": [{"TokenType": "id_token", "TokenValue": "****aHNA", "$type": "Token"}, {"TokenType": "refresh_token", "TokenValue": "****DE5F", "$type": "Token"}, {"TokenType": "access_token", "TokenValue": "****qqZA", "$type": "Token"}], "Category": "Token", "Name": "Token Issued Success", "EventType": "Success", "Id": 2000, "Message": null, "ActivityId": "0HN3JO8I4ONIQ:00000025", "TimeStamp": "2024-05-14T03:03:06.0000000Z", "ProcessId": 9200, "LocalIpAddress": "::1:44348", "RemoteIpAddress": "::1", "$type": "TokenIssuedSuccessEvent"} [10:03:06 INF] Request finished HTTP/2 POST https://localhost:44348/connect/token - 200 null application/json; charset=UTF-8 825.0013ms [10:03:06 INF] Request starting HTTP/2 OPTIONS https://localhost:44348/api/abp/application-configuration?includeLocalizationResources=false - null null [10:03:06 INF] CORS policy execution successful. [10:03:06 INF] Request finished HTTP/2 OPTIONS https://localhost:44348/api/abp/application-configuration?includeLocalizationResources=false - 204 null null 0.8188ms [10:03:06 INF] Request starting HTTP/2 GET https://localhost:44348/api/abp/application-configuration?includeLocalizationResources=false - null null [10:03:06 INF] CORS policy execution successful. [10:03:06 INF] Request starting HTTP/1.1 GET https://localhost:44348/.well-known/openid-configuration - null null [10:03:06 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration [10:03:06 INF] Request finished HTTP/1.1 GET https://localhost:44348/.well-known/openid-configuration - 200 null application/json; charset=UTF-8 16.1236ms [10:03:06 INF] Request starting HTTP/1.1 GET https://localhost:44348/.well-known/openid-configuration/jwks - null null [10:03:06 INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks [10:03:06 INF] Request finished HTTP/1.1 GET https://localhost:44348/.well-known/openid-configuration/jwks - 200 null application/json; charset=UTF-8 20.1814ms [10:03:06 INF] No CORS policy found for the specified request. [10:03:06 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [10:03:06 INF] Route matched with {area = "abp", action = "Get", controller = "AbpApplicationConfiguration", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationRequestOptions) on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController (Volo.Abp.AspNetCore.Mvc). [10:03:06 INF] Authorization failed. These requirements were not met: OperationAuthorizationRequirement:Name=Update [10:03:06 INF] Authorization failed. These requirements were not met: OperationAuthorizationRequirement:Name=Delete [10:03:06 INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto'. [10:03:06 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 111.7459ms [10:03:06 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [10:03:06 INF] Request finished HTTP/2 GET https://localhost:44348/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 262.0342ms [10:03:06 INF] Request starting HTTP/2 OPTIONS https://localhost:44348/api/abp/application-localization?cultureName=en-GB&onlyDynamics=false - null null [10:03:06 INF] CORS policy execution successful. [10:03:06 INF] Request finished HTTP/2 OPTIONS https://localhost:44348/api/abp/application-localization?cultureName=en-GB&onlyDynamics=false - 204 null null 0.777ms [10:03:06 INF] Request starting HTTP/2 GET https://localhost:44348/api/abp/application-localization?cultureName=en-GB&onlyDynamics=false - null null

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    could you please share your package.json file. Have you followed migration guide https://docs.abp.io/en/abp/latest/Migration-Guides/Index for updating?

    Thanks

  • User Avatar
    0
    lan.dang created

    Here is package.json file { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@abp/blogging": "~8.1.1", "@abp/owl.carousel": "~8.1.1", "@volo/abp.aspnetcore.mvc.ui.theme.lepton": "~8.1.1", "@volo/account": "~8.1.1" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello again,

    I think you have not shared full file of package.json , I want to check angular side packages so can you please share it from angular side. otherwise try to delete yarn.lock file and run yarn command and then try to run application

    Thanks

  • User Avatar
    0
    lan.dang created

    Ah it is package.json in .Host project, here is the one in angular { "name": "StaffApp", "version": "0.0.0", "license": "UNLICENSED", "scripts": { "ng": "ng", "start": "ng serve --open", "build": "ng build", "build:prod": "ng build --configuration production", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@abp/ng.components": "~8.1.1", "@abp/ng.core": "~8.1.1", "@abp/ng.oauth": "~8.1.1", "@abp/ng.setting-management": "~8.1.1", "@abp/ng.theme.shared": "~8.1.1", "@volo/abp.commercial.ng.ui": "~8.1.1", "@volo/abp.ng.account": "~8.1.1", "@volo/abp.ng.audit-logging": "~8.1.1", "@volo/abp.ng.gdpr": "~8.1.1", "@volo/abp.ng.identity": "~8.1.1", "@volo/abp.ng.openiddictpro": "~8.1.1", "@volo/abp.ng.language-management": "~8.1.1", "@volo/abp.ng.saas": "~8.1.1", "@volo/abp.ng.text-template-management": "~8.1.1", "@volosoft/abp.ng.theme.lepton-x": "~3.1.1",

    "@abp/ng.theme.basic": "~8.1.1",
    "@volo/abp.ng.identity-server": "~8.1.1",
    "@volo/abp.ng.theme.lepton": "~8.1.1",
    
    
    "@angular/animations": "~17.1.0",
    "@angular/common": "~17.1.0",
    "@angular/compiler": "~17.1.0",
    "@angular/core": "~17.1.0",
    "@angular/forms": "~17.1.0",
    "@angular/localize": "~17.1.0",
    "@angular/platform-browser-dynamic": "~17.1.0",
    "@angular/platform-browser": "~17.1.0",
    "@angular/router": "~17.1.0",
    
    "@angular/cdk": "~17.1.0",
    "@angular/material": "~17.1.0",
    "@angular/material-moment-adapter": "^~17.1.0",
    "@angular/service-worker": "~17.1.0",
    "@angular-material-components/datetime-picker": "16.0.1",
    
    "@ng-select/ng-select": "12.0.7",
    "@ngx-translate/core": "^15.0.0",
    "@ngx-translate/http-loader": "^8.0.0",
    "@schematics/angular": "^17.3.7",
    "@swimlane/ngx-datatable": "20.1.0",
    "file-saver": "^2.0.5",
    "lodash": "^4.17.21",
    "material-design-icons": "^3.0.1",
    "ngx-clipboard": "^16.0.0",
    "ngx-webstorage": "13.0.1",
    "primeflex": "^3.3.1",
    "primeicons": "^7.0.0",
    "primeng": "17.16.1",
    "sweetalert2": "^11.7.1",
    "ts-toolbelt": "9.6",
    
    "rxjs": "~7.8.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.14.0"
    

    }, "devDependencies": { "@abp/ng.schematics": "~8.1.1",

    "@angular-devkit/build-angular": "~17.1.0",
    "@angular-eslint/builder": "~17.2.0",
    "@angular-eslint/eslint-plugin": "~17.2.0",
    "@angular-eslint/eslint-plugin-template": "~17.2.0",
    "@angular-eslint/schematics": "~17.2.0",
    "@angular-eslint/template-parser": "~17.2.0",
    "@angular/cli": "~17.1.0",
    "@angular/compiler-cli": "~17.1.0",
    "@angular/language-service": "~17.1.0",
    
    "@types/jasmine": "~3.6.0",
    "@types/node": "^20.0.0",
    
    "@types/jasminewd2": "~2.0.3",
    
    
    "@typescript-eslint/eslint-plugin": "6.9.1",
    "@typescript-eslint/parser": "6.9.1",
    "eslint": "^8.0.0",
    "jasmine-core": "~4.0.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.0.0",
    "typescript": "~5.3.0",
    
    "codelyzer": "^6.0.1",
    "jasmine-spec-reporter": "~7.0.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "ng-packagr": "^17.3.0",
    "protractor": "~7.0.0",
    "ts-node": "~10.9.2",
    "tslint": "~6.1.0"
    

    }, "resolutions": { "webpack": "^5.0.0" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello lan.dang,

    I have checked your package.json its perfect. Can you please check any error or exception in logs if you can recognize. The logs you have shared doesn't have any error or exception, it becomes difficult to diagnose exact problem. Also try to create a sample project of v 8.1.1 and try to run it.

    thanks

  • User Avatar
    0
    lan.dang created

    I could not find other log that useful, there is no exception or any hint, Have a look at it, seem that issue with openIDDict? How can I upgrade OpenIDDict to 5.0.0, I do not see OpenID package reference in .net Core 2024-05-14 15:02:18.396 +07:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2024-05-14 15:02:18.397 +07:00 [INF] Request finished HTTP/2 GET https://localhost:44348/.well-known/openid-configuration - 200 null application/json; charset=UTF-8 32.7857ms 2024-05-14 15:02:18.403 +07:00 [INF] Request starting HTTP/2 OPTIONS https://localhost:44348/.well-known/openid-configuration/jwks - null null

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    please check out https://docs.abp.io/en/abp/8.1/Migration-Guides/OpenIddict-Angular

    thanks

  • User Avatar
    0
    lan.dang created

    I think the problem maybe from this customize TenantConfigurationProvider but resolveResult.TenantIdOrName is always NULL

  • User Avatar
    0
    lan.dang created

    As I checked, when login it processes correct and return CurrentUser object But when direct to Angular page, it could not keep logged object. Can you explain how is wrong in communicate between angular and .host project?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi lan.dang

    How can I reproduce your problem in a new 8.x template project?

    Can you share your custom code and steps?

    Thanks.

  • User Avatar
    0
    lan.dang created

    Hi @maliming, I am not sure I can reproduce it is new project, I just take care project, it works fine with 7.0 but when I upgrade to 8.1.1 it does not work. Can you setup a zoom or meeting so I can show you the problem? Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I can see the IdentityServer4 appear in your logs.

    What OAuth2 provider are you using?

    IdentityServer4 or OpenIddict?

  • User Avatar
    0
    lan.dang created

    I think IdentityServer4, seem that we have not changed to OpenIddict

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What are the results of the https://localhost:44348/api/abp/application-configuration?includeLocalizationResources=false request in your angular app after logging in?

    What is the bearer token in this request header?

  • User Avatar
    0
    lan.dang created

    The result is here : { "localization": { "values": {

    },
    "resources": {
    
    },
    "languages": [
      {
        "cultureName": "en-GB",
        "uiCultureName": "en-GB",
        "displayName": "English",
        "twoLetterISOLanguageName": "en",
        "flagIcon": "gb"
      },
      {
        "cultureName": "fi",
        "uiCultureName": "fi",
        "displayName": "Suomi",
        "twoLetterISOLanguageName": "fi",
        "flagIcon": "fi"
      },
      {
        "cultureName": "sv",
        "uiCultureName": "sv",
        "displayName": "Svenska",
        "twoLetterISOLanguageName": "sv",
        "flagIcon": "se"
      },
      {
        "cultureName": "ru",
        "uiCultureName": "ru",
        "displayName": "Pусский",
        "twoLetterISOLanguageName": "ru",
        "flagIcon": "ru"
      },
      {
        "cultureName": "et",
        "uiCultureName": "et",
        "displayName": "Eestlane",
        "twoLetterISOLanguageName": "et",
        "flagIcon": "ee"
      },
      {
        "cultureName": "es",
        "uiCultureName": "es",
        "displayName": "Español",
        "twoLetterISOLanguageName": "es",
        "flagIcon": "es"
      }
    ],
    "currentCulture": {
      "displayName": "English",
      "englishName": "English",
      "threeLetterIsoLanguageName": "eng",
      "twoLetterIsoLanguageName": "en",
      "isRightToLeft": false,
      "cultureName": "en",
      "name": "en",
      "nativeName": "English",
      "dateTimeFormat": {
        "calendarAlgorithmType": "SolarCalendar",
        "dateTimeFormatLong": "dddd, MMMM d, yyyy",
        "shortDatePattern": "M/d/yyyy",
        "fullDateTimePattern": "dddd, MMMM d, yyyy h:mm:ss tt",
        "dateSeparator": "/",
        "shortTimePattern": "h:mm tt",
        "longTimePattern": "h:mm:ss tt"
      }
    },
    "defaultResourceName": "StaffApp",
    "languagesMap": {
      "bootstrap-datepicker": [
        {
          "name": "zh-Hans",
          "value": "zh-CN"
        },
        {
          "name": "zh-Hant",
          "value": "zh-TW"
        }
      ],
      "moment": [
        {
          "name": "zh-Hans",
          "value": "zh-cn"
        },
        {
          "name": "zh-Hant",
          "value": "zh-tw"
        },
        {
          "name": "de-DE",
          "value": "de"
        }
      ]
    },
    "languageFilesMap": {
      "bootstrap-datepicker": [
        {
          "name": "zh-Hans",
          "value": "zh-CN"
        },
        {
          "name": "zh-Hant",
          "value": "zh-TW"
        }
      ],
      "moment": [
        {
          "name": "zh-Hans",
          "value": "zh-cn"
        },
        {
          "name": "zh-Hant",
          "value": "zh-tw"
        },
        {
          "name": "de-DE",
          "value": "de"
        }
      ],
      "jquery.timeago": [
        {
          "name": "zh-Hans",
          "value": "zh-CN"
        },
        {
          "name": "zh-Hant",
          "value": "zh-TW"
        }
      ],
      "jquery-validation": [
        {
          "name": "zh-Hans",
          "value": "zh"
        },
        {
          "name": "zh-Hant",
          "value": "zh_TW"
        }
      ]
    }
    

    }, "auth": { "grantedPolicies": {

    }
    

    }, "setting": { "values": { "Abp.Localization.DefaultLanguage": "en", "Abp.Timing.TimeZone": "UTC", "Volo.Abp.LeptonTheme.Layout.Boxed": "False", "Volo.Abp.LeptonTheme.Layout.MenuPlacement": "Left", "Volo.Abp.LeptonTheme.Layout.MenuStatus": "AlwaysOpened", "Volo.Abp.LeptonTheme.Style": "Style6", "Volo.Abp.LeptonTheme.Style.PublicLayout": "Style1", "Abp.Identity.Password.RequiredLength": "6", "Abp.Identity.Password.RequiredUniqueChars": "1", "Abp.Identity.Password.RequireNonAlphanumeric": "True", "Abp.Identity.Password.RequireLowercase": "True", "Abp.Identity.Password.RequireUppercase": "True", "Abp.Identity.Password.RequireDigit": "True", "Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword": "False", "Abp.Identity.Password.PasswordChangePeriodDays": "0", "Abp.Identity.Lockout.AllowedForNewUsers": "True", "Abp.Identity.Lockout.LockoutDuration": "300", "Abp.Identity.Lockout.MaxFailedAccessAttempts": "5", "Abp.Identity.SignIn.RequireConfirmedEmail": "False", "Abp.Identity.SignIn.EnablePhoneNumberConfirmation": "True", "Abp.Identity.SignIn.RequireConfirmedPhoneNumber": "False", "Abp.Identity.User.IsUserNameUpdateEnabled": "True", "Abp.Identity.User.IsEmailUpdateEnabled": "True", "Abp.Identity.OrganizationUnit.MaxUserMembershipCount": "2147483647", "Abp.Identity.TwoFactor.Behaviour": "Optional", "Abp.Identity.TwoFactor.UsersCanChange": "True", "Abp.Account.EnableLdapLogin": "false", "Abp.Identity.EnableOAuthLogin": "false", "Abp.Identity.OAuthLogin.Authority": null, "Abp.Identity.OAuthLogin.ClientId": null, "Abp.Identity.OAuthLogin.ClientSecret": null, "Abp.Identity.OAuthLogin.Scope": null, "Abp.Identity.OAuthLogin.RequireHttpsMetadata": "false", "Abp.Identity.OAuthLogin.ValidateEndpoints": "false", "Abp.Identity.OAuthLogin.ValidateIssuerName": "false", "Abp.Account.IsSelfRegistrationEnabled": "true", "Abp.Account.EnableLocalLogin": "true", "Abp.Account.TwoFactorLogin.IsRememberBrowserEnabled": "true", "Abp.Account.Captcha.UseCaptchaOnLogin": "false", "Abp.Account.Captcha.UseCaptchaOnRegistration": "false", "Abp.Account.Captcha.VerifyBaseUrl": "https://www.google.com/", "Abp.Account.Captcha.SiteKey": null, "Abp.Account.Captcha.Version": "3", "Abp.Account.Captcha.Score": "0.5", "Abp.Account.ProfilePictureSource": "False" } }, "currentUser": { "isAuthenticated": false, "id": null, "tenantId": null, "impersonatorUserId": null, "impersonatorTenantId": null, "impersonatorUserName": null, "impersonatorTenantName": null, "userName": null, "name": null, "surName": null, "email": null, "emailVerified": false, "phoneNumber": null, "phoneNumberVerified": false, "roles": [] }, "features": { "values": { "Identity.TwoFactor": "Optional", "Identity.MaxUserCount": "0", "Account.EnableLdapLogin": "False", "Identity.EnableOAuthLogin": "False", "SettingManagement.Enable": "true", "SettingManagement.AllowChangingEmailSettings": "false", "LanguageManagement.Enable": "true", "TextManagement.Enable": "true", "LeptonManagement.Enable": "true", "AuditLogging.Enable": "true" } }, "globalFeatures": { "enabledFeatures": [] }, "multiTenancy": { "isEnabled": true }, "currentTenant": { "id": null, "name": null, "isAvailable": false }, "timing": { "timeZone": { "iana": { "timeZoneName": "Etc/UTC" }, "windows": { "timeZoneId": "UTC" } } }, "clock": { "kind": "Utc" }, "objectExtensions": { "modules": {

    },
    "enums": {
    
    }
    

    }, "extraProperties": {

    } }

  • User Avatar
    0
    lan.dang created

    After upgrade from IdentityServer to OpenIdDict, when I run application it give error. What does it mean?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What is the bearer token in this request header?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Migration to OpenIddict step by step

    https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-angular

  • User Avatar
    0
    lan.dang created

    After migrate to OpenIDDict I got this error https://localhost:44348/connect/authorize?response_type=code&client_id=StaffApp_App&state=SzZKbTVHY1FpS3pvb3JFVGgzbk9rSzVaUmJYRHI0eG1wWXJQNGE5Nlowcnlw&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20offline_access%20StaffApp&code_challenge=Gh7WpwLQlnevdU7iEaDbIDoC6ujkx5uJRYfEV9rQH0A&code_challenge_method=S256&nonce=SzZKbTVHY1FpS3pvb3JFVGgzbk9rSzVaUmJYRHI0eG1wWXJQNGE5Nlowcnlw&culture=en-GB&ui-culture=en-GB

    error:invalid_request error_description:This client application is not allowed to use the specified scope. error_uri:https://documentation.openiddict.com/errors/ID2051

    What did I miss anything?

  • User Avatar
    0
    lan.dang created

    The error is : The authorization request was rejected because the application 'StaffApp_App' was not allowed to use the 'StaffApp' scope.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please check your OpenIddictDataSeedContributor

    The scope and application/client

    https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L61-L66

    https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L77

    https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L101

  • User Avatar
    0
    lan.dang created

    Another error :( 2024-05-15 16:11:59.473 +07:00 [INF] The authorization request was rejected because the application 'StaffApp_App' was not allowed to use the authorization endpoint. 2024-05-15 16:11:59.495 +07:00 [INF] The response was successfully returned as a plain-text document: { "error": "unauthorized_client", "error_description": "This client application is not allowed to use the authorization endpoint.", "error_uri": "https://documentation.openiddict.com/errors/ID2046" }

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    This client application is not allowed to use the authorization endpoint

    Please check the grantTypes of StaffApp_App

    https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L121-L125

  • User Avatar
    0
    lan.dang created

    I still get another issue : CryptographicException: Keyset does not exist I found the same question is here : https://support.abp.io/QA/Questions/4872/CryptographicException-Keyset-does-not-exist I do not use IIS so I have added this code , my question is where do I store the Certificate file? In my another app (witt Blazor), it does not require me to store certificate in local. What is different?

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