Our sample codes are useful for demonstrating the various authentication processes for Genetec ClearID™. Explore our sample codes and feel free to adapt them to your specific use cases.
You can find more details about the Authentication in Authentication overview.
For examples regarding the different REST calls, we recommend using the Swagger interactive documentation to test out the different API calls: How to call a REST API via Swagger UI
C# Sample
This sample shows how to use Microsoft® library to create the assertion token and authenticate to ClearID.
Java sample
This sample shows how to create the assertion token and authenticate to ClearID in Java.
Javascript sample
We created a sample that shows how to authenticate in Javascript. The complete code is posted on CodeSandbox.io
You can test it by forking the sample, then updating the JSON file with the one download from your account. See the JSON file section in this article.