0
I need your help, I am using Azure partner center SDK (java) to create a link with azure cloud. I am using the following code to do the authentication part and it was mentioned in Microsoft Documentation.
IAggregatePartner partnerOperations = PartnerCredentials.getInstance().generateByApplicationCredentials(
"ApplicationId"
"ApplicationSecret",
"AccountId");
but when I run the code this error appears:
**Exception in thread "main" PartnerException: ErrorCategory: NOT_SPECIFIED, ServiceErrorPayload: null, Context: null, Base Description: com.microsoft.store.partnercenter.exception.PartnerException: Failed to do the application AAD login
at com.microsoft.store.partnercenter.extensions.ApplicationPartnerCredentials.authenticate(ApplicationPartnerCredentials.java:172)
at com.microsoft.store.partnercenter.extensions.PartnerCredentials.generateByApplicationCredentials(PartnerCredentials.java:69)
at com.microsoft.store.partnercenter.extensions.PartnerCredentials.generateByApplicationCredentials(PartnerCredentials.java:50)
at com.contoso.PartnerApp.App.main(App.java:19)
Caused by: java.lang.IllegalArgumentException: authority Uri should have at least one segment in the path (i.e. https://<host>/<path>/...)
at com.microsoft.aad.msal4j.Authority.detectAuthorityType(Authority.java:72)
at com.microsoft.aad.msal4j.ClientApplicationBase$Builder.authority(ClientApplicationBase.java:257)
at com.microsoft.store.partnercenter.extensions.ApplicationPartnerCredentials.authenticate(ApplicationPartnerCredentials.java:155)**
... 3 more