Starts in:
0 DAY
3 HRS
3 MIN
19 SEC
Starts in:
0 D
3 H
3 M
19 S
Open Closed

Error Action "Login with this user" when deploy on server #4955


User avatar
0
thuc.nghiem@techplus.vn created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • {error: 'unauthorized_client', error_description: 'This client application is not allowed to use the specified grant type.', error_uri: 'https://documentation.openiddict.com/errors/ID2064'}
  • Steps to reproduce the issue:"
    1. Login by admin
    1. Select Administration -> Identity Management -> Users -> Chọn a user -> Action->Login with this user->nothing action next.
  • But localhost run this action ok.

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

    Hi,

    Can you share the full error logs? thanks.

  • User Avatar
    0
    thuc.nghiem@techplus.vn created

    Hi, This is full logs Logs

    2023-04-26 15:07:59.111 +07:00 [INF] The response was successfully returned as a JSON document: { "error": "unauthorized_client", "error_description": "This client application is not allowed to use the specified grant type.", "error_uri": "https://documentation.openiddict.com/errors/ID2064" }.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer
    "grant_type": "Impersonation",
    "client_id": "DeployWeb22",
    

    Please add Impersonation to granttypes of your angular application,

  • User Avatar
    0
    thuc.nghiem@techplus.vn created

    Hi maliming, Where should I add it in my application?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can add "gt:Impersonation" to the Permissions of your application. We will support it in the next version.

    ["ept:authorization","ept:token","ept:device","ept:introspection","ept:revocation","ept:logout","gt:authorization_code","gt:implicit","gt:password","gt:refresh_token","gt:urn:ietf:params:oauth:grant-type:device_code","gt:client_credentials","gt:Impersonation","rst:code","rst:code id_token","rst:code id_token token","rst:code token","rst:id_token","rst:id_token token","rst:none","rst:token","scp:roles","scp:profile","scp:email","scp:address","scp:phone","scp:AbpAPI"]
    
    [
      "ept:authorization",
      "ept:token",
      "ept:device",
      "ept:introspection",
      "ept:revocation",
      "ept:logout",
      "gt:authorization_code",
      "gt:implicit",
      "gt:password",
      "gt:refresh_token",
      "gt:urn:ietf:params:oauth:grant-type:device_code",
      "gt:client_credentials",
      "gt:Impersonation",
      "rst:code",
      "rst:code id_token",
      "rst:code id_token token",
      "rst:code token",
      "rst:id_token",
      "rst:id_token token",
      "rst:none",
      "rst:token",
      "scp:roles",
      "scp:profile",
      "scp:email",
      "scp:address",
      "scp:phone",
      "scp:AbpAPI"
    ]
    

  • User Avatar
    0
    thuc.nghiem@techplus.vn created

    The function is now running, thank you!

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