File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void beforeCacheAccess(ITokenCacheAccessContext iTokenCacheAccessContext)
2424 @ Override
2525 public void afterCacheAccess (ITokenCacheAccessContext iTokenCacheAccessContext ) {
2626 data = iTokenCacheAccessContext .tokenCache ().serialize ();
27- // you could implement logic here to write changes to file here
27+ // you could implement logic here to write changes to file
2828 }
2929
3030 private static String readDataFromFile (String resource ) {
@@ -34,7 +34,7 @@ private static String readDataFromFile(String resource) {
3434 Files .readAllBytes (
3535 Paths .get (path .toURI ())));
3636 } catch (Exception ex ){
37- System .out .println ("Error reading data from file" );
37+ System .out .println ("Error reading data from file: " + ex . getMessage () );
3838 throw new RuntimeException (ex );
3939 }
4040 }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ private static IAuthenticationResult acquireToken() throws Exception {
3030 // dummy data, so the acquireTokenSilently call will fail.
3131 TokenCacheAspect tokenCacheAspect = new TokenCacheAspect ("sample_cache.json" );
3232
33- // This is the secret that is created in the Azure AD portal
33+ // This is the secret that is created in the Azure portal when registering the application
3434 IClientCredential credential = ClientCredentialFactory .createFromSecret (CLIENT_SECRET );
3535 ConfidentialClientApplication cca =
3636 ConfidentialClientApplication
You can’t perform that action at this time.
0 commit comments