Skip to content
docsv0.34.0

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

Parameters of __construct()
NameTypeDescription
$routesMilpa\Admin\Data\RoutesSource
$settingsMilpa\Admin\AdminSettings

IdentityComponent::contract()

public static function contract(): Milpa\Live\ValueObjects\ComponentContract

A 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\StateSnapshot

Re-reads the host context on every mount; query parameters and travelling state have no say.

Parameters

Parameters of mount()
NameTypeDescription
$propsarray
$contextMilpa\Live\ValueObjects\ComponentContext

IdentityComponent::handle()

public function handle(Milpa\Live\ValueObjects\InteractionRequest $request): Milpa\Live\ValueObjects\InteractionResult

Refuses mutation, including attempts to change scopes through a signed component envelope.

Parameters

Parameters of handle()
NameTypeDescription
$requestMilpa\Live\ValueObjects\InteractionRequest