Skip to content

Support self-delegation flow without requiring separate actor token #26677

@Bin4yi

Description

@Bin4yi

Problem

Current implementation requires a separate actor token even when the subject and actor are the same entity:

  • Creates unnecessary complexity for self-delegation scenarios
  • Forces clients to obtain two tokens (subject and actor) for the same entity
  • Increases token exchange request size and processing overhead
  • Complicates client implementation for common use cases
  • Reduces efficiency in scenarios where an entity delegates to itself with different scopes

Proposed Solution

Implement self-delegation detection and processing:

Alternatives

No response

Please select the area issue is related to

Other

Version

No response

Developer Checklist

  • [Behavioural Change] Does this change introduce a behavioral change to the product?
  •  ↳ Approved by team lead
  •  ↳ Label impact/behavioral-change added
  • [Migration Impact] Does this change have a migration impact?
  •  ↳ Migration label added (e.g., 7.2.0-migration)
  •  ↳ Migration issues created and linked
  • [New Configuration] Does this change introduce a new configuration?
  •  ↳ Label config added
  •  ↳ Configuration is properly documented

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions