Hi,
FME Server 2022.2.1 Express install.
Connecting out via proxy (not authenticated).
https is not enabled on tomcat
I've published an OAuth2 connection to the FME Server and am trying to Authorize it. Proxy is configured in the FME settings.
Client ID and Secret is all set up correctly, including the redirect URI as I can get to the OAuth sign-in page for the app. However when supplying my credentials the token/code is being sent to http://<server><port>/fmeoauth but it just returns an error page "FME OAuth Service FAILED" "Failed to complete".
I've also tried to use the ip address of the proxy to no avail. I'm guessing it is a tomcat redirecting issue but can't see any previous info related to modifying the server.xml or OAuth config file in the install folder.
the FME OAuth log is detailing some nio error:
Sun-19-Feb-2023 04:28:08.734 AM INFORM http-nio-0.0.0.0-80-exec-2 417005 : Retrieving connection with nonce: <removed>
Sun-19-Feb-2023 04:28:08.749 AM ERROR http-nio-0.0.0.0-80-exec-2 929026:Error: http://<my proxy url>
COM.safe.fmeserver.api.FMEServerException: 929026:Error: http://" alt="http://http://" target="_blank">http://<my proxy url>
at COM.safe.fmeserver.api.FMEServerException.getExceptionFromMessage(FMEServerException.java:127)
at COM.safe.fmeserver.api.FMEServerTCPIPChannel.handleErrorResponse(FMEServerTCPIPChannel.java:497)
at COM.safe.fmeserver.api.FMEServerTCPIPChannel.genericRequestHelper(FMEServerTCPIPChannel.java:444)
at COM.safe.fmeserver.api.FMEServerTCPIPChannel.genericRequest(FMEServerTCPIPChannel.java:332)
at COM.safe.fmeserver.api.FMEServerTCPIPChannel.genericRequest(FMEServerTCPIPChannel.java:322)
at COM.safe.fmeserver.api.namedconnection.FMEOAuthV2Connection.retrieveAccessTokenForCode(FMEOAuthV2Connection.java:119)
at COM.safe.webservices.fmeoauth.FMEOAuthServlet.doGet(FMEOAuthServlet.java:357)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:670)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:750)