irmajs demo

This page contains an IRMA attribute issuance and verification demo.

Demo 1: attribute issuance

This will issue an irma-demo.MijnOverheid.ageLower credential. Separate four attributes with commas.


Demo 2: attribute verification

This will verify an IRMA attribute. You can look up attributes that can be verified in the IRMA attribute index. A label can optionally be included to clarify your attribute request to the user. When you also include a message, then that message will be signed with an attribute-based signature.




Authenticate session request

If the no_auth setting of your irma server is disabled, session requests sent to the irma server need to be authenticated, by including an API token in a HTTP header, or signing the request into a JWT.


Note: This demo handles private keys in the user's browser. Do not do this in production! You should sign the JWTs in your server's backend, or if you use an API token, POST the session request directly from your backend to the irma server.