-
Notifications
You must be signed in to change notification settings - Fork 6k
ReactiveOAuth2AccessTokenResponseClients should support setting a custom WebClient #6182
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
Comments
Hey! I am a first timer and would like to handle this issue! |
@shraiysh Thanks! The issue is yours. If you have any questions, please don't hesitate to let us know! |
Hi, @rwinch I have never worked with spring boot applications. Can you please provide me a link to an example that could possibly use the required getter function, for testing? Thanks! |
@shraiysh You do not need a getter. The tests will be like those in WebClientReactiveClientCredentialsTokenResponseClientTests Does that help? |
When there is another first time...I would love to try! |
@richardvaldiviesomacias We'd love for you to contribute! Given the high degree of interest we post the first timer only tickets and let it be a first come first serve system, so keep an eye out for tickets flagged as first-timers-only. PS: If you find another ticket you are interested in, don't let the lack of first-timers-only flag discourage you. We are glad to help you contribute to other tickets too. There is a Help Wanted label that are typically fairly simple issues too. |
Hey @rwinch ! Thanks, that helped. I'm sorry for the typo there; I meant setter instead of getter! :D |
Hey, @rwinch I might take a little longer to solve this issue because many things are new to me, but I will do it. If you have anything to guide me, that'll help. Right now, I'm reading about Tests and the docs on Spring security for this class. I will be trying to understand the working and then write the tests for this. |
Thanks, @rwinch. I will take a look. Is any documentation for sending a PR. I mean is there any particular way to send a PR (Format, new of branch, etc.) |
@richardvaldiviesomacias, I think this is the link you're looking for! Hope that helps. |
Hi, I need some help! For testing custom webClient, I have written the following function
I don't understand how I mock over it without changing the other classes. Also, if I use The solution that I came to was surrounding the
Please let me know if this is right! Or if there's any other way! |
|
@shraiysh You can use something like this to ensure you don't get a null value and then verify it was used here |
Hey, @rwinch I am sorry for creating a mess with so many commits... Please check it (the last one - I have squashed others) and let me know if I should submit a pull request. |
@shraiysh Thanks for the fast turnaround! Can you please update the commit message to align with the Spring Security conventions? A few notes:
|
Add WebClientReactiveAuthorizationCodeTokenResponseClient.setWebClient Fixes spring-projectsgh-6182
Thanks for the comment @rwinch. I have updated the commit message to
Please let me know if there's an issue. |
Looks good. Can you submit a pull request? |
Add WebClientReactiveAuthorizationCodeTokenResponseClient.setWebClient Fixes gh-6182
WebClientReactiveAuthorizationCodeTokenResponseClient
would be more convenient to use if their respectivewebClient
properties could be set.Let's add a setter, like:
As well as tests to confirm that the setter works.
Related to #6051
The text was updated successfully, but these errors were encountered: