I am trying to connect to azure data lake using java program where i can get data to/from azure data lake, but my program is unable to authenticate and terminate with Bad Request error.
i have Microsoft free trail account and have done following steps.
- Registered web app on default azure active directory. (sign on URL is dummy)
- Copied auth-endpoint-token and application-id and generated client secret
- Already have permission (as i am the only user with default login)
- Added Azure data lake and given required permission.
Now i have this java code.
resource = "https://XXXXXlake.azuredatalakestore.net"
ClientCredsTokenProvider provider = new ClientCredsTokenProvider(authEndPointToken, clientID, clientSecret);
AzureADToken token = provider.getToken();
Now my question is,
- What is missing to cause Bad Request error ?
- BTW, i also do not see registered app under 'My apps' option, though it is visible when i select 'All apps' option ?
Thanks