This repo contains a set of Microsoft Entra Verified ID samples
Sample | Description |
---|---|
1-asp-net-core-api-idtokenhint | dotnet sample for using the VC Request Service API to issue and verify verifiable credentials with a credential contract which allows the VC Request API to pass in a payload for the Verifiable Credentials |
2-asp-net-core-api-user-signin | dotnet sample for a developer who wants to provide the signed-in users an option to get and present Verifiable credentials using the VC Request Service API. Note: This is different from 1-asp-net-core-api-idtokenhint sample as follows : User sign-in is a requirement to issue credentials since the credentials have claims (first name, last name) based on the signed-in user's idToken.' |
3-asp-net-core-api-b2c | dotnet sample for using the VC Request Service API to issue and verify verifiable credentials in a B2C policy |
5-onboard-with-tap | dotnet sample for onboarding new hire employees and guest users. |
Microsoft provides a simple to use REST API to issue and verify verifiable credentials. You can use the programming language you prefer to the REST API. Instead of needing to understand the different protocols and encryption algorithms for Verifiable Credentials and DIDs you only need to understand how to format a JSON structure as parameter for the VC Request API.
The documentation for calling the issuance API is available here.
The documentation for calling the verification API is available here.
Before you can run any of these samples make sure your environment is setup correctly. You can follow the setup instructions here
If you are deploying this sample to Azure App Services, then you can view app logging information in the Log stream
if you do the following:
- Go to Development Tools, then Extensions
- Select
+ Add
and addASP.NET Core Logging Integration
extension - Go to
Log stream
and setLog level
drop down filter toverbose
The Log stream console will now contain traces from the deployed.
For more information, see MSAL.NET's conceptual documentation: