-
Notifications
You must be signed in to change notification settings - Fork 1
Add 'client_credentials' OAuth2 authentication flow #17
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
|
Please Fix conflicts |
|
Please revert unintended formatting ! |
|
Resolve conflict |
4e22508 to
5c95376
Compare
src/main/java/io/cdap/plugin/http/common/http/OAuthGrantType.java
Outdated
Show resolved
Hide resolved
src/main/java/io/cdap/plugin/http/common/http/OAuthClientAuthentication.java
Outdated
Show resolved
Hide resolved
70e21f5 to
e8348e8
Compare
817649c to
e506fc1
Compare
| } | ||
| } | ||
|
|
||
| public void validate(FailureCollector failureCollector) { |
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.
these changes are not removed, yet it is showing in diff, let the sequence of methods remain same to avoid unnecessary confusion.
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.
@Amit-CloudSufi this comment is still pending
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.
Sequence is same as before, it;s just that previous indentation was wrong I.e. 4 spaces, and currently the check style which was recommended by Ankit has 2 spaces, because of that it got updated when made changes. That's why it is shown is removed and added which updated spaces.
| * Enum encoding the handled Oauth2 Grant Types | ||
| */ | ||
| public enum OAuthGrantType implements EnumWithValue { | ||
| REFRESH_TOKEN("refresh token", "Refresh Token"), |
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.
Is the name refresh token intended and not missing a _ ?
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.
I think it;s fine, @vikasrathee-cs let me know if we need to update it
psainics
left a comment
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.
Some file have 2 space of indentation and some have 4.
eg:
OAuthClientAuthentication (2 space)
OAuthGrantType (4 space)
Please keep formatting consistent in the PR
| protected String authType; | ||
|
|
||
| @Name(PROPERTY_OAUTH2_ENABLED) | ||
| @Name(PROPERTY_OAUTH2_ENABLED) |
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.
Revert unintended changes
| @Nullable | ||
| public String getAuthUrl() { | ||
| return authUrl; | ||
| return authUrl; |
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.
Revert unintended changes
8b97950 to
30e78c9
Compare
ddb9e10 to
c490a5e
Compare
|
raised a separate pr with indentation fix : #18 |
No description provided.