Azure-Samples / Azure-Samples/remote-mcp-apim-functions-python

ClientRedirectUri wrongly cached and returned

オープン
#16 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Bicep
スター
129
フォーク
79
PR マージ指標
30日以内にマージされた PR はありません

説明

When first logging in with the inspector app, and then trying to login with VScode.

I get the issue that APIM is returning the redirecturi of the inspector app, to the vs code oauth session.

A VS code oauth triggered flow, generates the following redirect uri.

![Image](https://github.com/user-attachments/assets/2da23d6f-d261-4977-a1a3-06f67976f6f7)

Which points to inspector.

--------------
EDIT: I discovered that the register endpoint is not triggered by vscode consistently. therefor a new value is not being set by the set-cache policy action. Hence if I use inspector first, then it uses that value as its already cached. Inspector always calls the register endpoint.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

register endpoint とその set-cache policy action から始め、issue に記載されている inspector-first および VS Code OAuth のシーケンスを再現します。VS Code が登録をトリガーしない場合のフローを検証し、各 OAuth セッションが以前にキャッシュされた値ではなく、それぞれ固有の redirect URI を受け取ることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, vscode
領域
api, authentication, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。