"There is no entity having the ticket specified..." というエラーに関して

Authlete が返却するエラーには、下記に示すような ticket に関するエラーが存在します。

[A041201] There is no entity having the ticket specified in the /api/auth/authorization/issue request (ticket = {Ticket}).

「Authlete のデータベース上にリクエスト中に含まれる ticket が存在しない」、という内容ですが、このエラーが発生する原因には下記の2パターンが考えられます。

  1. ticket は発行から24時間以上経過し、すでに失効している場合
  2. タイムアウトに伴うリトライなど、同じ ticket を2回以上利用した場合
上記の場合、当該 ticket がデータベース上に既に存在しないため、上記に示すようなエラーを Authlete は返却します。

なお、ticket パラメータの詳細につきましては、下記をご参照ください。

Anthorization Endpoint における ticket パラメーターの特性
How did we do with this article?