IdentityComponent
The identity of this request, as authenticated by the host's gate (greenhouse decisions/0322). Declared scopes are a projection, never an authorization decision. The component has no actions, reads no credential or enrollment store and never substitutes a historical session owner.
IdentityComponent::__construct()
public function __construct(Milpa\Admin\Data\RoutesSource $routes, Milpa\Admin\AdminSettings $settings):Parameters
| Name | Type | Description |
|---|---|---|
| $routes | Milpa\Admin\Data\RoutesSource | |
| $settings | Milpa\Admin\AdminSettings |
IdentityComponent::contract()
public static function contract(): Milpa\Live\ValueObjects\ComponentContractA read-only view of authenticated request facts and the ceremonies the house actually serves.
IdentityComponent::mount()
public function mount(array $props, Milpa\Live\ValueObjects\ComponentContext $context): Milpa\Live\ValueObjects\StateSnapshotRe-reads the host context on every mount; query parameters and travelling state have no say.
Parameters
| Name | Type | Description |
|---|---|---|
| $props | array | |
| $context | Milpa\Live\ValueObjects\ComponentContext |
IdentityComponent::handle()
public function handle(Milpa\Live\ValueObjects\InteractionRequest $request): Milpa\Live\ValueObjects\InteractionResultRefuses mutation, including attempts to change scopes through a signed component envelope.
Parameters
| Name | Type | Description |
|---|---|---|
| $request | Milpa\Live\ValueObjects\InteractionRequest |