Skip to content

Commit

Permalink
SDK-2265 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jun 13, 2024
1 parent fb57255 commit f63db10
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 701 deletions.
6 changes: 3 additions & 3 deletions examples/digitalidentity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example requires [Docker](https://docs.docker.com/)

> To see how to retrieve activity details using the one time use token, refer to the [digitalidentity controller](app/Http/Controllers/IdentityController.php)
## Dynamic Share Example
* Visit [/dynamic-share](https://localhost:4002/dynamic-share)
## Digital Identity Example
* Visit [/generate-share](https://localhost:4002/generate-share)

> To see how to create a dynamic scenario, refer to the [dynamic share controller](app/Http/Controllers/DynamicShareController.php)
> To see how to create a dynamic scenario, refer to the [Digital Identity controller](app/Http/Controllers/IdentityController.php)

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ class IdentityController extends BaseController
public function show(DigitalIdentityClient $client)
{
try {
$policy = (new PolicyBuilder())->build();

$policy = (new PolicyBuilder())
->withFamilyName()
->withGivenNames()
->withFullName()
->withDateOfBirth()
->withGender()
->withNationality()
->withPhoneNumber()
->withSelfie()
->withEmail()
->withDocumentDetails()
->withDocumentImages()
->build();

$redirectUri = 'https://host/redirect/';

Expand Down Expand Up @@ -54,6 +67,7 @@ public function show(DigitalIdentityClient $client)
'fetchedSessionExpiry' => $sessionFetched->getExpiry(),
'fetchedSessionCreated' => $sessionFetched->getCreated(),
'fetchedSessionUpdated' => $sessionFetched->getUpdated(),
'sdkId' => $client->id

]);
} catch (\Throwable $e) {
Expand Down
119 changes: 0 additions & 119 deletions examples/digitalidentity/app/Http/Controllers/ProfileController.php

This file was deleted.

31 changes: 0 additions & 31 deletions examples/digitalidentity/app/Http/Controllers/ShareController.php

This file was deleted.

Loading

0 comments on commit f63db10

Please sign in to comment.