Source:
protected void service ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.io.IOException , javax.servlet.ServletException { org.ovirt.engine.core.aaa.servlet.SsoLoginServlet.log.debug ( "Entered SsoLoginServlet" ) ; java.lang.String scope = java.lang.String.format ( "ovirt-app-admin ovirt-app-portal ovirt-ext=auth:sequence-priority=%s" , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getProperty ( authSequencePriorityPropertyName ) ) ; java.lang.String redirectUri = java.lang.String.format ( "%s://%s:%s%s" , request.getScheme ( ) , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( request.getServerName ( ) ) , request.getServerPort ( ) , postActionUrl ) ; java.lang.String url = new org.ovirt.engine.core.uutils.net.URLBuilder ( org.ovirt.engine.core.aaa.filters.FiltersHelper.getEngineSsoUrl ( request ) , "/oauth/authorize" ) . addParameter ( "client_id" , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getProperty ( "ENGINE_SSO_CLIENT_ID" ) ) . addParameter ( "response_type" , "code" ) . addParameter ( "app_url" , request.getParameter ( "app_url" ) ) . addParameter ( "engine_url" , org.ovirt.engine.core.aaa.filters.FiltersHelper.getEngineUrl ( request ) ) . addParameter ( "redirect_uri" , redirectUri ) . addParameter ( "scope" , scope ) . build ( ) ; org.ovirt.engine.core.aaa.servlet.SsoLoginServlet.log.debug ( "Redirecting to '{}'" , url ) ; response.sendRedirect ( url ) ; }

Target:
protected void service ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.io.IOException , javax.servlet.ServletException { org.ovirt.engine.core.aaa.servlet.SsoLoginServlet.log.debug ( "Entered SsoLoginServlet" ) ; java.lang.String scope = java.lang.String.format ( "ovirt-app-admin ovirt-app-portal ovirt-ext=auth:sequence-priority=%s" , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getProperty ( authSequencePriorityPropertyName ) ) ; java.lang.String redirectUri = java.lang.String.format ( "%s://%s:%s%s" , request.getScheme ( ) , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( request.getServerName ( ) ) , request.getServerPort ( ) , postActionUrl ) ; org.ovirt.engine.core.uutils.net.URLBuilder urlBuilder = new org.ovirt.engine.core.uutils.net.URLBuilder ( org.ovirt.engine.core.aaa.filters.FiltersHelper.getEngineSsoUrl ( request ) , "/oauth/authorize" ) . addParameter ( "client_id" , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getProperty ( "ENGINE_SSO_CLIENT_ID" ) ) . addParameter ( "response_type" , "code" ) . addParameter ( "app_url" , request.getParameter ( "app_url" ) ) . addParameter ( "engine_url" , org.ovirt.engine.core.aaa.filters.FiltersHelper.getEngineUrl ( request ) ) . addParameter ( "redirect_uri" , redirectUri ) . addParameter ( "scope" , scope ) ; if ( org.apache.commons.lang.StringUtils.isNotEmpty ( request.getParameter ( "sso_token" ) ) ) { urlBuilder.addParameter ( "sso_token" , request.getParameter ( "sso_token" ) ) ; } java.lang.String url = urlBuilder.build ( ) ; org.ovirt.engine.core.aaa.servlet.SsoLoginServlet.log.debug ( "Redirecting to '{}'" , url ) ; response.sendRedirect ( url ) ; }