Skip to content

Commit

Permalink
Added-example-for-DBS-and-updated-failure-details
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 24, 2024
1 parent 6ae1278 commit 60ae50d
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions examples/digitalidentity/app/Http/Controllers/DbsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
Expand Down

0 comments on commit 60ae50d

Please sign in to comment.