I am currently implementing an OpenID authentication based on this example. Now I am developing behind a network proxy, therefore the server cannot connect to google. The java proxy settings seem to not have any effect. I also found this stackoverflow question, but I cannot figure out where to put the code. How can I configure the proxy for my spring boot container?
thanks
If you are using Intellij go to this file C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\plugins\maven\lib\maven3\conf
Change security settings so you can edit.
Not sure if this is of any use, but I'm just working through a Spring Boot tutorial currently (https://spring.io/guides/gs/integration/) and hit a similar network proxy issue. This was resolved just by providing the JVM arguments
Adding just the two provided arguments didn't work for me. Full list that did it is this:
If you need this to make a call to an external service, then try to set proxy to the Client you are using (RestTemplate, etc), as below:
For me,
server.use-forwarded-headers=true
inapplication.properties
solved the problem.