Trusted Authorities
The example-4 script authenticates an Integration Service client to manage Identities using the Admin identity created in example-0 and then performs the following tasks:
- Creates an identity with username:
Driver
. - Creates a credential for the
Driver
identity (the root identity is a trusted authority). - Verifies a credential issued by this trusted authority.
- Checks a credential (in the Tangle) that is issued by an unknown authority (it will be not valid).
- Adds the external issuer as trusted authority.
- Checks same credential, now the issuer is trusted and the credential is valid.
You can run the example with the following command:
- Java
- Node.js
- Java
- Nodejs