Skip to content

Commit

Permalink
Add ability to bypass oauth gateway to avoid endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed Apr 5, 2024
1 parent 811a81a commit 0ebe83c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Plugin/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ public function oauthHandleRedirect($request) {}
* @param array $params
* @return string
*/
public function oauthGetRedirectUrl($params = array())
public function oauthGetRedirectUrl($area = NULL, $bypassGateway = FALSE)
{
$params = array_merge(
$params,
['plugin' => $this->code],
['action' => 'redirect']
);
Expand Down
4 changes: 2 additions & 2 deletions lib/Plugin/Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function oauthHandleRedirect($request);
* @param null|string $area
* @return string
*/
function oauthGetRedirectUrl($area = NULL);
function oauthGetRedirectUrl($area = NULL, $bypassGateway = FALSE);

/**
* @param array $stateData
Expand Down Expand Up @@ -106,7 +106,7 @@ function oauthTest();
function hasConnectionConfig();

/**
* throws Plugin_Exception
* @throws Plugin_Exception
*/
function connectionDiagnostics(bool $super): array;

Expand Down

0 comments on commit 0ebe83c

Please sign in to comment.