diff --git a/examples/digitalidentity/app/Http/Controllers/DbsController.php b/examples/digitalidentity/app/Http/Controllers/DbsController.php index 8c31533d..ee97577f 100644 --- a/examples/digitalidentity/app/Http/Controllers/DbsController.php +++ b/examples/digitalidentity/app/Http/Controllers/DbsController.php @@ -16,30 +16,14 @@ class DbsController extends BaseController public function generateSession(DigitalIdentityClient $client) { try { - $advancedIdentityProfileJson = - (object)[ - "profiles" => [(object)[ - - "trust_framework" => "UK_TFIDA", - "schemes" => [(object)[ - - "label" => "identity-AL-L1", - "type" => "DBS", - "objective"=> "BASIC" - ], - [ - "label" => "identity-AL-M1", - "type" => "DBS", - "objective" => "BASIC" - ] - ] - ] - ] - ] - ; - $policy = (new PolicyBuilder()) - ->withAdvancedIdentityProfileRequirements((object)$advancedIdentityProfileJson) + ->withIdentityProfileRequirements((object)[ + 'trust_framework' => 'UK_TFIDA', + 'scheme' => [ + 'type' => 'DBS', + 'objective' => 'BASIC' + ] + ]) ->build(); $redirectUri = 'https://host/redirect/';