introspectRouter

fun Route.introspectRouter()

POST /oauth2/introspect エンドポイントを登録する

RFC 7662に基づくトークンイントロスペクションエンドポイント

  • クライアント認証が必須(Confidentialクライアント)

  • 有効なトークンの場合: メタデータ付きで active=true を返す

  • 無効/期限切れ/失効済みトークンの場合: active=false のみを返す