meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:oauth2 [2024/10/12 08:35] – [The Settings page] duncancplugin:oauth2 [2025/08/02 15:55] (current) – [Logging HTTP requests and responses] duncanc
Line 25: Line 25:
 ===== Installation ===== ===== Installation =====
  
-You need to enable Common Plugin before enabling this plugin and should update Common Plugin to the latest versionOn the Manage Plugins page use this package URL +The plugin requires php version 8 and phpList version 3.6.14 or later. 
-  https://github.com/bramley/phplist-plugin-common/archive/master.zip+ 
 +You also need to install and enable the **Imap2** plugin version 1.1.0 or later before enabling this plugin. It can be installed or upgraded on the Manage Plugins page (menu Config > Manage plugins) using the package URL 
 +  https://github.com/bramley/phplist-plugin-imap2/archive/master.zip
  
 Install this plugin using the package URL Install this plugin using the package URL
   https://github.com/bramley/phplist-plugin-oauth2/archive/master.zip   https://github.com/bramley/phplist-plugin-oauth2/archive/master.zip
- 
  
  
Line 64: Line 65:
 <code php>$bounce_mailbox_host = 'pop3.gmail.com'; <code php>$bounce_mailbox_host = 'pop3.gmail.com';
 $bounce_mailbox_port = '995/pop3/ssl';</code> $bounce_mailbox_port = '995/pop3/ssl';</code>
 +
 +See the documentation for the [[plugin:imap2|Imap2 plugin]] for further explanation.
 +
 ==== The Settings page ==== ==== The Settings page ====
  
Line 80: Line 84:
 === Redirect URL with Microsoft Azure === === Redirect URL with Microsoft Azure ===
  
-Azure does not allow query parameters in the redirect URL, so the default value shown above will be rejected when you try to add it within Azure. You will need to use an htaccess redirect rule to work-around this.+Microsoft has restrictions on whether the redirect URL may contain query parameters, see [[https://learn.microsoft.com/en-gb/entra/identity-platform/reply-url#query-parameter-support-in-redirect-uris]] 
 + 
 +If your account means query parameters in the redirect URL are not allowed then the default value shown above will be rejected when you try to add it within Azure. You will need to use an htaccess redirect rule to work-around this.
  
 In Azure set the redirect URL to something similar to ''%%https://mysite.com/OAuth2/authorise%%'' then add a rewrite rule to the .htaccess file in the web root directory but adjust if phplist is not installed in the default location In Azure set the redirect URL to something similar to ''%%https://mysite.com/OAuth2/authorise%%'' then add a rewrite rule to the .htaccess file in the web root directory but adjust if phplist is not installed in the default location
Line 127: Line 133:
 When the configuration setting is enabled, OAuth2 authentication will be used instead of password authentication when sending emails. When the configuration setting is enabled, OAuth2 authentication will be used instead of password authentication when sending emails.
  
-===== Logging HTTP requests and responses =====+===== Debugging ===== 
 +==== Logging HTTP requests and responses ====
  
 The plugin can log the HTTP requests made and responses received. The plugin can log the HTTP requests made and responses received.
Line 164: Line 171:
 To stop logging simply change ''DEBUG'' to ''OFF''. To stop logging simply change ''DEBUG'' to ''OFF''.
  
 +==== Logging IMAP ====
 +
 +The dialogue with the IMAP server can be logged, see the [[https://resources.phplist.com/plugin/imap2|IMAP2 plugin documentation]] for details.