-
Notifications
You must be signed in to change notification settings - Fork 301
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
feat: Public OAuth uptake for C# libraries #762
Conversation
#if NET35 | ||
return IsTokenExpired(accessToken); | ||
#else | ||
return isTokenExpired(accessToken); | ||
#endif |
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.
Do we have any function that works in both old and new framework? instead of making two different functions, if we can use single one to do it?
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.
we cannot use single function to do it, whatever works in 3.5 is deprecated in later versions and vice versa
@@ -116,7 +125,7 @@ public Response Request(Request request) | |||
catch (Exception clientException) | |||
{ | |||
throw new ApiConnectionException( | |||
"Connection Error: " + request.Method + request.ConstructUrl(), | |||
"Connection Error1: " + request.Method + request.ConstructUrl(), |
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.
Do we need to do Error1 here or is it a debug statement? Please check once
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.
This is reverted
{ | ||
throw new AuthenticationException("ClientId or ClientSecret cannot be null"); | ||
} | ||
grantType = "client_credentials"; |
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.
It should be this.grantType I guess
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.
done
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.
Looks good to me, please check the failing tests
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Fixes
DII-1683
A short description of what this PR does.
Public OAuth uptake for C# libraries
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.