This is an example application that shows the sequence to activate a HID Approve token in offline mode. The sequence is the following:
- Login as the OIDC application to obtain an access token
- Find the user you want to register the token for
- Create a Provisioning Request for the user with device type DT_APPR_OT
- Create a Deep Link using the provisioning request
- Present the Deep Link to the user
You will need an OpenID Connect client application created. If you are using the HID Authentication Service, create an application in the HID Admin Portal. If you are using the HID Appliance, create a user with a system login static password and then create an adapter of type OpenID Connect with the same name as the user.
To run this example you must define the following environment variables:
HID_AUTH_URL=https://{appliance or service address}/idp/{tenant}
HID_SCIM_URL=https://{appliance or service address}/scim/{tenant}
HID_CLIENT_ID={oidc client id}
HID_CLIENT_SECRET={oidc client secret}
Also note that if your appliance is using a certificate issued by an internal CA, you may need to set the NODE_EXTRA_CA_CERTS
environment variable to point to the CA certificate file.