core-jgi/migration
Carlos Ruiz 5f2d71347d
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 11:49:39 +01:00
..
i4.1 Migration folders for maintenance of new version 2017-10-31 23:26:16 +01:00
i4.1z Migration folders for maintenance of new version 2017-10-31 23:26:16 +01:00
i5.1 Prepare folder for 6.1 scripts mainteinance 2018-11-04 15:12:03 -02:00
i5.1z set version to 6.1 2018-11-04 14:47:53 -02:00
i6.1 Preparing release 6.2 - create folders for new version 2019-01-06 00:01:01 +01:00
i6.1z Preparing release 6.2 2019-01-05 23:34:22 +01:00
i6.2 release 7.1 process - prepare new migration folder for release 2019-11-21 23:31:40 +01:00
i6.2z IDEMPIERE-3413 Multi Select List and table reference - fix oracle seed - wrong application of script 201906171811_IDEMPIERE-3413.sql 2019-12-29 00:00:36 +01:00
i7.1 IDEMPIERE-4521 Release 8.1 - RC 2020-11-03 21:59:12 +01:00
i7.1z IDEMPIERE-4521 Release 8.1 - RC 2020-11-03 21:59:12 +01:00
i8.1z IDEMPIERE-4604 Release 8.2 2020-12-20 09:24:39 +01:00
i8.2 IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system) (#593) 2021-03-06 11:49:39 +01:00
i8.2z IDEMPIERE-4705 Add grid toggle button to Detail Pane (#596) 2021-02-18 20:16:45 +01:00
local_sql IDEMPIERE-3655 Improve installer to include migration scripts and syncApplied 2018-03-14 18:13:08 -03:00
processes_post_migration IDEMPIERE-3862 ORACLE - Update datatype NVARCHAR2 to VARCHAR2 (#207) 2020-08-13 12:34:00 +08:00
zip_2pack IDEMPIERE-3655 Improve installer to include migration scripts and syncApplied 2018-03-14 18:13:08 -03:00
.project IDEMPIERE-4488 Remove .classpath from repository (#608) 2021-03-04 13:55:47 +01:00