2017 © Pedro Peláez
 

library requestor

Create signed IRMA issuance or verification requests

image

irma/requestor

Create signed IRMA issuance or verification requests

  • Friday, April 27, 2018
  • by sringers
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 33 % Grown

The README.md

irmarequestor

irmarequestor can create signed JWT disclosure or issuance requests to send to an irma_api_server, for example using irma_js. It can be used to start IRMA attribute disclosure or issuance sessions with an IRMA mobile app., (*1)

Install using composer

composer require irma/requestor

Use

Create an instance:, (*2)

include "vendor/autoload.php";
$requestor = new \IRMA\Requestor("Name", "id", "privatekey.pem");

The first two parameters identifiy your application to the IRMA app user and to the irma_api_server, respectively. The private key with which to sign the JWT must be stored in PEM format at the path specified by the third parameter., (*3)

Create a verification request:, (*4)

$jwt = $requestor->getVerificationJwt([
    [
        "label" => "IRMATube member type",
        "attributes" => [ "irma-demo.IRMATube.member.type" ]
    ]
]);

Create an issuance request:, (*5)

$jwt = $requestor->getIssuanceJwt([
    [
        "credential" => "irma-demo.IRMATube.member",
        "attributes" => [ "type" => "regular", "id" => "2" ]
    ]
]);

The Versions

27/04 2018

dev-master

9999999-dev

Create signed IRMA issuance or verification requests

  Sources   Download

Apache-2.0

The Requires

 

by Sietse Ringers
by Privacy by Design Foundation

27/04 2018

v0.1.0

0.1.0.0

Create signed IRMA issuance or verification requests

  Sources   Download

Apache-2.0

The Requires

 

by Sietse Ringers
by Privacy by Design Foundation