Interface LoginActingContributor


public interface LoginActingContributor

登入時的代行(acting)貢獻點

認證是必要能力,不得依賴任何選用 feature;但登入流程需容納「代行」這類選用能力—— 例如 delegation:他人指派本帳號為代理人時,登入即自動併入授權人的權限。

本介面把依賴反轉:登入流程只認識這個介面,實作由選用 feature 提供。未安裝任何提供 代行的 feature 時無實作 bean,登入流程走一般路徑。

至多一個實作 bean——多個代行來源如何合併並無良好定義的語意,故不做 List 聚合; 兩個以上實作應於消費端組裝時視為錯誤。

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    代行登入的結果。身份仍是登入者本人(sub 不變),只是多了授權人的權限。
  • Method Summary

    Modifier and Type
    Method
    Description
    contribute(String subject)
    對已通過認證的登入者計算代行登入結果。
  • Method Details