Issue: Currently OAuth2AuthenticationService does not support changing the applicationUrl like the ProviderSignInController/ConnectController does.
The request_uri is built purely based on the request, which is mostly fine except for when a server is behind a reverse proxy (nginx, etc).
StringBuffer sb = request.getRequestURL();
Suggestion/Fix: Add an applicationUrl variable in the OAuth2AuthenticationService which the request_uri can be built from.
Issue: Currently OAuth2AuthenticationService does not support changing the applicationUrl like the ProviderSignInController/ConnectController does.
The request_uri is built purely based on the request, which is mostly fine except for when a server is behind a reverse proxy (nginx, etc).
StringBuffer sb = request.getRequestURL();
Suggestion/Fix: Add an applicationUrl variable in the OAuth2AuthenticationService which the request_uri can be built from.