-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17363. ABFS: Fix Oauth 2.0 username-password authentication issues #2445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
Those Test* failure are unrelated, but the testing abfs policy is always "PR supplier must declare which Azure endpoint they ran all the Nominating @snvijaya and @bilaharith for review |
| */ | ||
| public static AzureADToken getTokenUsingUserCreds(String authEndpoint, | ||
| String username, String password, String clientId, | ||
| String clientSecret) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like clientSecret is not required. Why are we still passing this?
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
https://hadoop.apache.org/docs/current/hadoop-azure/abfs.html
I have tried OAuth 2.0 authentication with the username and password written above.
However, it failed with the following exception.
The cause of the error seems to be that UserPasswordTokenProvider is calling getTokenUsingClientCreds() for the service principal.
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc
I checked the API specifications of Azure and fixed the cause of this error.