## Summary - standardize Microsoft provider connections around explicit platform vs dedicated identity modes - centralize admin-consent URL and runtime identity resolution so platform flows no longer fall back to tenant-local credentials - add migration classification, richer consent and verification state handling, dedicated override management, and focused regression coverage ## Validation - focused repo test coverage was added across provider identity, onboarding, audit, policy, guard, and migration flows - latest explicit passing run in the workspace: `vendor/bin/sail artisan test --compact tests/Feature/AdminConsentCallbackTest.php tests/Feature/Audit/ProviderConnectionConsentAuditTest.php` ## Notes - branch includes the full Spec 137 artifact set under `specs/137-platform-provider-identity/` - target base branch: `dev` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #166
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Providers;
|
|
|
|
use App\Support\Providers\ProviderConnectionType;
|
|
|
|
final class ProviderConnectionClassificationResult
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $signals
|
|
* @param array{app_id: ?string, source: string} $effectiveApp
|
|
*/
|
|
public function __construct(
|
|
public readonly int $providerConnectionId,
|
|
public readonly ProviderConnectionType $suggestedConnectionType,
|
|
public readonly bool $reviewRequired,
|
|
public readonly array $signals,
|
|
public readonly array $effectiveApp,
|
|
public readonly string $source,
|
|
) {}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function metadata(): array
|
|
{
|
|
return [
|
|
'legacy_identity_classification_source' => $this->source,
|
|
'legacy_identity_review_required' => $this->reviewRequired,
|
|
'legacy_identity_signals' => $this->signals,
|
|
'legacy_identity_result' => $this->suggestedConnectionType->value,
|
|
'effective_app' => $this->effectiveApp,
|
|
'suggested_connection_type' => $this->suggestedConnectionType->value,
|
|
];
|
|
}
|
|
}
|