List of usage examples for com.liferay.portal.security.sso.openid.connect.constants OpenIdConnectWebKeys OPEN_ID_CONNECT_REQUEST_ACTION_NAME
String OPEN_ID_CONNECT_REQUEST_ACTION_NAME
To view the source code for com.liferay.portal.security.sso.openid.connect.constants OpenIdConnectWebKeys OPEN_ID_CONNECT_REQUEST_ACTION_NAME.
Click Source Link
From source file:com.liferay.login.authentication.openid.connect.web.internal.servlet.taglib.OpenIdConnectNavigationPreDynamicInclude.java
License:Open Source License
@Override public void include(HttpServletRequest request, HttpServletResponse response, String key) throws IOException { Collection<String> openIdConnectProviderNames = _openIdConnectProviderRegistry .getOpenIdConnectProviderNames(); if (openIdConnectProviderNames.isEmpty()) { return;/*from w w w . j a va 2 s. c o m*/ } String mvcRenderCommandName = ParamUtil.getString(request, "mvcRenderCommandName"); ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); if (mvcRenderCommandName.equals(OpenIdConnectWebKeys.OPEN_ID_CONNECT_REQUEST_ACTION_NAME) || !_openIdConnect.isEnabled(themeDisplay.getCompanyId())) { return; } RequestDispatcher requestDispatcher = _servletContext.getRequestDispatcher(_JSP_PATH); try { requestDispatcher.include(request, response); } catch (ServletException se) { _log.error("Unable to include JSP " + _JSP_PATH, se); throw new IOException("Unable to include JSP " + _JSP_PATH, se); } }