This guide shows how to find a Virgil CardEach Card contains attributes associated with the holder of the Private key and are used to prove the ownership of a Public key more .... As previously noted, all Virgil Cards are saved at Virgil ServicesVirgil Services is a group of cryptographic services that make up the Virgil Security infrastructure more ... after their publication. Thus, every user can find their own Virgil Card or another user's Virgil Card on Virgil Services. It should be noted that users' Virgil Cards will only be visible to application users. Global Virgil Cards will be visible to anybody.
For original information about the Virgil Card check out the Virgil Card Service endpoint here.
Set up your project environment before you begin to find a Virgil Card, with the getting started guide.
In order to search for an ApplicationEach application should be registered on Virgil Services, where it will have its own Virgil Card with unique credentials more ... or Global Virgil CardGlobal Cards are created with a unique validation token received after verification through the Virgil Identity Service more ... you need to initialize the Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services.:
virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
There are two ways to find an Application Virgil Card on Virgil Services:
The first one allows developers to get the Virgil Card by its unique IDA unique identifier of a Virgil Card that is received after the Card's publication on Virgil Services more ...
alice_cards = virgil.cards.get("[ALICE_CARD_ID]")
The second one allows developers to find Virgil Cards by identity and identityType
# search for all User's Virgil Cards.
alice_cards = virgil.cards.find("alice")
# search for all Global Virgil Cards
bob_global_cards = virgil.cards.find_global(VirgilIdentity::EMAIL,
# search for Application Virgil Card
app_cards = virgil.cards.find_global(VirgilIdentity::APPLICATION, "com.username.appname")