-
-
Notifications
You must be signed in to change notification settings - Fork 681
Open
Labels
bugSomething isn't workingSomething isn't workingpending-verificationSomething is still under investigationSomething is still under investigation
Description
Describe the bug
This issue This issue #7840 has been closed. I went to test the fix in the new version v1.34.0 where the change was applied, but the same behavior occurs. I really need this resolved.
Two weeks have passed and the problem still persists. I set the maximum time you changed @wangsijie, and even so, after two weeks the same behavior happened again; it reported that the refresh token was not found.
{
"key": "ExchangeTokenBy.RefreshToken",
"result": "Error",
"error": "{\"stack\":\"InvalidGrant: invalid_grant\\n at file:///etc/logto/packages/core/build/main-TKJPWNIA.js:3519:11\\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\\n at async callTokenHandler (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/actions/token.js:70:7)\\n at async allowedGrantTypeCheck (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/actions/token.js:53:7)\\n at async supportedGrantTypeCheck (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/actions/token.js:45:7)\\n at async stripGrantIrrelevantParams (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/actions/token.js:33:7)\\n at async auth (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/token_auth.js:266:9)\\n at async loadClient (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/token_auth.js:161:9)\\n at async setWWWAuthenticateHeader (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/token_auth.js:52:11)\\n at async selectiveBody (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/selective_body.js:49:5)\\n at async noCache (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/no_cache.js:3:3)\\n at async cors (/etc/logto/node_modules/.pnpm/@[email protected]/node_modules/@koa/cors/index.js:106:16)\\n at async errorHandler (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/error_handler.js:26:7)\\n at async ensureSessionSave (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/helpers/initialize_app.js:52:7)\\n at async contextEnsureOidc (file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/shared/context_ensure_oidc.js:4:5)\\n at async file:///etc/logto/node_modules/.pnpm/oidc-provider@https+++codeload.github.com+logto-io+node-oidc-provider+tar.gz+aa47a2b000d08e28c1d212aac1899eddd13009e9/node_modules/oidc-provider/lib/helpers/initialize_app.js:225:5\",\"message\":\"invalid_grant\",\"allow_redirect\":true,\"name\":\"InvalidGrant\",\"error\":\"invalid_grant\",\"status\":400,\"statusCode\":400,\"expose\":true,\"error_description\":\"grant request is invalid\",\"error_detail\":\"refresh token not found\"}",
"ip": "54.239.98.66",
"userAgent": "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_472)",
"applicationId": "ly3v9b63x256flw76jv7g",
"params": {
"client_id": "ly3v9b63x256flw76jv7g",
"grant_type": "refresh_token",
"refresh_token": "zco-tnJmTFC0Dqy4O8eHr8DmeNoIW7n28rz9WpYFFrg"
},
"tokenTypes": [],
"applicationSecret": {
"name": "Default"
}
}
My version logto is v1.34.0
My application Alexa
Expected behavior
May the token exchange continue to function
How to reproduce?
is to create an application and the application must be trying to use the refresh token over a week and a half, the error will probably appear the same.
Environment
Self-hosted (Docker image)
Screenshots
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpending-verificationSomething is still under investigationSomething is still under investigation