Force OAuth RedirectURL to always be backend URL. Otherwise it may get generated...
authorMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 25 Aug 2022 14:18:03 +0000 (15:18 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 25 Aug 2022 14:18:11 +0000 (15:18 +0100)
ext/oauth-client/CRM/OAuth/BAO/OAuthClient.php

index e7a0f537fc9390f832544f6a7b895480ed0c9445..6590fe5bf412915665d0b9e1140fb96eadc02269 100644 (file)
@@ -67,7 +67,7 @@ class CRM_OAuth_BAO_OAuthClient extends CRM_OAuth_DAO_OAuthClient {
    */
   public static function getRedirectUri() {
     return \Civi::settings()->get('oauthClientRedirectUrl') ?:
-      \CRM_Utils_System::url('civicrm/oauth-client/return', NULL, TRUE, NULL, FALSE);
+      \CRM_Utils_System::url('civicrm/oauth-client/return', NULL, TRUE, NULL, FALSE, FALSE, TRUE);
   }
 
 }