gr2m / gr2m/github-api-wishlist

Invalidate a token by authenticating using the same token

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

説明

This is something that I ran into several times.

We have the [`DELETE /applications/{client_id}/token`](https://docs.github.com/en/rest/reference/apps#delete-an-app-token) endpoint which permits to delete a token today. But it requires the OAuth's `client_id` and `client_secret` for authentication. I don't think that should be necessary. It's a security concern that I cannot create an OAuth token, use it for a task, and then remove it, unless the owner of the OAuth provides a backend architecture which allows to invalidate my token without exposing the `client_secret`

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

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

調査の方向性

Issue にリンクされている文書化済みの DELETE /applications/{client_id}/token エンドポイントから始め、現在の認証要件を確認してください。その要件を、同じトークンを使う提案中の認証フローと比較してください。OAuth クライアントシークレットを公開せずにトークンを無効化できる API 変更が決定され、文書化されていれば完了です。

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

評価

技術スタック
github
領域
api, authentication, security
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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