QuestionQ98

VerifiedConnect to and consume Azure services and third-party services

You are building a web application that calls the Microsoft Graph API. You register the application in the Azure portal and upload a valid X509 certificate.

You create an appsettings.json file containing the certificate name, the application's client identifier, and the Azure Active Directory (Azure AD) tenant identifier. You create a method named ReadCertificate to return the X509 certificate by name.

You need to implement code that acquires a token by using the certificate. How should you complete the code segment?

Community Discussion

No comments yet. Be the first to start the discussion!