Guardian
is the core of the SDK. To use the SDK, import the library:
Variable | Description |
---|---|
Enrollment URI | Value encoded in the QR code scanned from Guardian Web Widget or your enrollment ticket sent to you in email or SMS. |
APNS Token | Apple APNS token for the device. It must be a string containing the 64 bytes (in hexidecimal format). |
Key Pair | An RSA (private/public) key pair used to assert your identity with Auth0 Guardian. |
Data
representation and store securely in, for example, an encrypted SQLiteDB:
SigningKey
, for example:
Notification
instance ready to be used.
allow
method. You’ll also need some information from the enrolled device that you obtained previously. In case you have more than one enrollment, you’ll have to find the one that has the same id
as the notification (the enrollmentId
property).
When you have the information, device
parameter is anything that implements the protocol AuthenticatedDevice
:
UIDevice.current.identifierForVendor
. Then just call:
reject
instead. You can also send an optional reject reason. The reject reason will appear in the Guardian logs.