You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perform request
Application app= graphClient.applications().byApplicationId(applicationId).get();
as
app.getKeyCredentials().get(0).getKey() is null!
Actual behavior
The app.getKeyCredentials().get(0).getKey() should not be null, expected certificate in byte format.
Steps to reproduce the behavior
TokenCredential tokenCredential = new ClientCertificateCredentialBuilder().tenantId(tenantId)
.clientId(clientId).pfxCertificate(pfxCertificatePath).clientCertificatePassword(pfxPassword)
.build();
String[] scopes = new String[] { "https://graph.microsoft.com/.default" };
GraphServiceClient graphClient = new GraphServiceClient(tokenCredential, scopes);
// Have at least one configured certificate for "<my app id>"
Application app = graphClient.applications().byApplicationId("<my app id>").get();
List<KeyCredential> keyCredentialList = app.getKeyCredentials();
keyCredentialList.get(0).getKey() is null!
The other properties are OK.
The text was updated successfully, but these errors were encountered:
Expected behavior
Have at least one configured certificate
Perform request
Application app= graphClient.applications().byApplicationId(applicationId).get();
as
app.getKeyCredentials().get(0).getKey() is null!
Actual behavior
The app.getKeyCredentials().get(0).getKey() should not be null, expected certificate in byte format.
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: