We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid or expired transaction ID
OAuth認証方式を利用したアプリケーションの開発を行っています。 https://misskey-hub.net/cn/docs/for-developers/api/token/oauth/
ドキュメント通りに実装を進めていますが、 アプリケーション認証フォームをブラウザで開いて認証ボタンを押したところ Invalid or expired transaction ID というエラーが表示されて認証フローを継続できません。
misskeyの実装に疎いため以下は推測となりますが、
認証に必要なデータを MemoryKVCache を利用して保持する実装となっているため 複数のバックエンドサーバーが起動する環境下 (misskey.io 等) では個々のサーバーのみデータが保存され、 ロードバランサーが前回と同じサーバーにリクエストを振り分けないと正しく動作しないのではないかと考えています。
https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/oauth/OAuth2ProviderService.ts#L200
認証フローが正常に完了する。
一般的なピーク時間帯 (バックエンドサーバーが多く起動している時間帯?) では認証フローはほぼ確実に失敗する。
/oauth/authorize
* Model and OS of the device(s): Ubuntu 24.04 * Browser: Chrome * Server URL: misskey.io * Misskey:
* Installation Method or Hosting Service: * Misskey: * Node: * PostgreSQL: * Redis: * OS and Architecture:
The text was updated successfully, but these errors were encountered:
/oauth/api/userinfo
/oauth/token/introspect
Successfully merging a pull request may close this issue.
💡 Summary
OAuth認証方式を利用したアプリケーションの開発を行っています。
https://misskey-hub.net/cn/docs/for-developers/api/token/oauth/
ドキュメント通りに実装を進めていますが、
アプリケーション認証フォームをブラウザで開いて認証ボタンを押したところ
Invalid or expired transaction ID
というエラーが表示されて認証フローを継続できません。misskeyの実装に疎いため以下は推測となりますが、
認証に必要なデータを MemoryKVCache を利用して保持する実装となっているため
複数のバックエンドサーバーが起動する環境下 (misskey.io 等) では個々のサーバーのみデータが保存され、
ロードバランサーが前回と同じサーバーにリクエストを振り分けないと正しく動作しないのではないかと考えています。
https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/oauth/OAuth2ProviderService.ts#L200
🥰 Expected Behavior
認証フローが正常に完了する。
🤬 Actual Behavior
一般的なピーク時間帯 (バックエンドサーバーが多く起動している時間帯?) では認証フローはほぼ確実に失敗する。
📝 Steps to Reproduce
/oauth/authorize
にアクセスしますInvalid or expired transaction ID
というエラーが表示されます💻 Frontend Environment
🛰 Backend Environment (for server admin)
Do you want to address this bug yourself?
The text was updated successfully, but these errors were encountered: