core-jgi/org.adempiere.server/WEB-INF/web.xml

70 lines
2.5 KiB
XML
Raw Normal View History

2006-11-17 10:13:45 +07:00
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<display-name>iDempiere Root</display-name>
<description></description>
2006-11-17 10:13:45 +07:00
<context-param>
<param-name>ServerRoot</param-name>
<param-value>1</param-value>
</context-param>
<context-param>
<param-name>org.eclipse.jetty.servlet.SessionCookie</param-name>
<param-value>ROOT_SESSIONID</param-value>
</context-param>
2006-11-17 10:13:45 +07:00
<filter>
<display-name>iDempiere Monitor Filter</display-name>
<filter-name>idempiereMonitorFilter</filter-name>
2006-11-17 10:13:45 +07:00
<filter-class>org.compiere.web.AdempiereMonitorFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>idempiereMonitorFilter</filter-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
2006-11-17 10:13:45 +07:00
</filter-mapping>
<servlet>
<servlet-name>idempiereMonitor</servlet-name>
2006-11-17 10:13:45 +07:00
<servlet-class>org.compiere.web.AdempiereMonitor</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
<init-param>
<param-name>dirAllowed</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system) (#593) * IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system) WIP - initial version working on zk with google apps mail using OAuth2 Authorization Code Flow and Client Type = web application * Enable imap reading with OAuth2 in RequestEMailProcessor * Simplify the code - tested plain and OAuth2 can use the same methods * Add +SCOPE parameter to AddAuthorizationForm according to IDEMPIERE-4713 * Rename the form AddAuthorizationMailForm to AddAuthorizationForm as is now more generic * IDEMPIERE-4713 * Rename migration scripts to make it newer than IDEMPIERE-4713 * Add list of scopes attended by a credential * Change form to accept other scopes, if no scope parameter is passed, then a list is shown, change the menu to fix the EMail scope * Add MAuthorizationAccount.refreshAndGetAccessToken * Add translation for messages * make call generic oauth, avoid using specific google API * Tests with microsoft as OAuth2 provider * Add record for microsoft as provider * Increase size of tokens * Define mandatory and secure columns * Update refresh token when it comes on the refresh call * Revoke endpoint is optional * Change the approach to a process instead of a form (WIP) * Implement servlet to process the OAuth2 code * Solve context suggestion from hengsin * Implement the form in an automatic popup approach for running on zkwebui * i18n - add translations for all messages that are shown to user * on the form opted for click to avoid the problem with browsers forbidding popups * clean spaces and tabs on line endings * avoid logging and copy of the secure columns * Fix problem reported by @d-ruiz about hidden NPE when SMTP Authentication is disabled * Add writing to AD_PInstance_Para and AD_PInstance_Log the results of processing the servlet * Control to avoid using the same authorization URL twice
2021-03-06 17:49:39 +07:00
<servlet>
<servlet-name>OAuthCodeCallbackHandlerServlet</servlet-name>
<servlet-class>org.idempiere.web.OAuthCodeCallbackHandlerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OAuthCodeCallbackHandlerServlet</servlet-name>
<url-pattern>/oauth2/callback</url-pattern>
</servlet-mapping>
2006-11-17 10:13:45 +07:00
<servlet-mapping>
<servlet-name>idempiereMonitor</servlet-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
2006-11-17 10:13:45 +07:00
</servlet-mapping>
<session-config>
<session-timeout>15</session-timeout>
</session-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>admin</web-resource-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>service</web-resource-name>
<url-pattern>/server/*</url-pattern>
</web-resource-collection>
<!-- <user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint> -->
</security-constraint>
2006-11-17 10:13:45 +07:00
<welcome-file-list>
<welcome-file>idempiere.jsp</welcome-file>
2006-11-17 10:13:45 +07:00
</welcome-file-list>
</web-app>