locked
Azure AD Client Credential refresh the access token RRS feed

  • Question

  • Hi,

    I am developing a Daemon (App-Only or Unattended) service to communicate with office 365 using EWS, to do this I have acquired a token successfully using following code.

    X509Certificate2 cert = new X509Certificate2(pfxCertificateFilePath, pfxPassword, X509KeyStorageFlags.MachineKeySet);
    ClientAssertionCertificate cac = new ClientAssertionCertificate(clientId, cert);
    AuthenticationContext authenticationContext = new 
    AuthenticationContext(authApiUri);
    AuthenticationResult authenticationResult = await authenticationContext.AcquireTokenAsync(resourceServerName, cac);
    authenticationResult.AccessToken;

    I am looking for an option to refresh the access token which is acquired using ClientAssertionCertificate. 
    Is it possible to refresh the access token which is acquired using ClientAssertionCertificate?

    Thanks

    Mahendran

    Thursday, September 20, 2018 6:17 AM

All replies