-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[JAVA][Feign] Replace Apache oltu with scribejava #8318
[JAVA][Feign] Replace Apache oltu with scribejava #8318
Conversation
- Implement the following authentication methods - ApiKey header - HTTP basic authentication - Oauth client credentials flow - Oauth Implicit flow - Oauth Pasword (deprecated)
That's correct |
CircleCI reports the following errors:
Can you please take a look when you've time? |
Forgot to remove the support for java 1.7 from the pom 😞 . Because I introduced lambda expressions it won't work anymore for java<1.8 |
Now it is throwing some timeout error.
|
No worry. We can safely remove java6, java7 support in the Feign client Please update the samples when you've time to fix the following:
|
Replace oltu with ScribeJava Update samples
Done, meanwhile I also updated the mustache template for gradle and sbt. They still had references for apache oltu. |
As reported by the CircleCI, the samples are not yet updated. Let me know if you need help on that. |
I merged the master branch into this branch and forgot to update the samples. |
|
||
:mainEnd | ||
if "%OS%"=="Windows_NT" endlocal | ||
|
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 like this is not the latest gradlew.bat
. I'll file another PR to update it.
cc @jimschubert
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.
Filed #8469
...es/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java
Show resolved
Hide resolved
@hugo-ma-alves |
@pPanda-beta |
Hello
This PR is the implementation for the issue #8297.
To sum up this PR addresses the following issues:
I can also implement the implicit flow. But I am not sure how to handle the user redirections in this context. These changes focus more on server to server communication. I Believe that the implicit flow is considered deprecated, it should be replaced by the authorization code grant.
The following git repo contains the Petstore client generated using the code on this PR. The open api spec file is also on the git repo
https://github.com/hugo-ma-alves/openapi-generator-petstore-demo
According with the ticket #6158 the support for java 7 is not guaranteed anymore right? I did some java 8 only code, so it won't work on jre7. But it should be easy to revert to java 7.
@bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) @bkabrda (2020/01)
btw, I committed the changes on the samples folder, not sure if they should also be on git. Let me know if I should remove them.
PR checklist
./bin/generate-samples.sh
to update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH.master
,5.1.x
,6.0.x