googleapis / googleapis/google-api-java-client

GoogleAuthorizationCodeFlow Won't Work With non-AppEngine

未關閉
#2,256 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
priority: p3 type: feature request
主要語言
Java
星號
1.5k
分支
772
平均合併
1 小時 44 分鐘
30 天內合併 PR
1

描述

https://developers.google.com/api-client-library/java/google-api-java-client/oauth2

The `GoogleAuthorizationCodeFlow` class needs, for persistence, a `DataStoreFactory`. However, this appears to be accessible only with AppEngine because the Cloud-Run library provides instead a `DatastoreFactory` (small S).

This dependency goes down event into the `AuthorizationCodeFlow` base class making it (seemingly) impossible for me to create a custom derived class that manages the persistence on my terms.

It would be nice if the base class was independent of the storage type, using function calls that can be overridden.

貢獻指南

開啟貢獻指南

研究方向

從 OAuth2 指南開始,檢查 GoogleAuthorizationCodeFlow 及其基底類別 AuthorizationCodeFlow,重點關注持久化為何需要 DataStoreFactory。將這項依賴與 Cloud Run 使用者可用的 DatastoreFactory 進行比較;完成的標準是就一個與儲存無關的擴充點達成共識並加以實作,同時測試顯示無需 App Engine 即可提供持久化。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
authentication
Issue 類型
重構
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。