Skip to content

Commit

Permalink
Merge pull request #623 from tomcoonen/feature/force-login
Browse files Browse the repository at this point in the history
Feature:Add support for forced login while authorizing
  • Loading branch information
stephangroen committed Oct 22, 2023
2 parents e3fb9f3 + 088223f commit ba60046
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Picqer/Financials/Exact/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ class Connection
*/
private $redirectUrl;

/**
* @var bool
*/
private $forceLogin = false;

/**
* @var string
*/
Expand Down Expand Up @@ -410,6 +415,7 @@ public function getAuthUrl()
'redirect_uri' => $this->redirectUrl,
'response_type' => 'code',
'state' => $this->state,
'force_login' => $this->forceLogin ? 1 : 0,
]);
}

Expand Down Expand Up @@ -468,6 +474,14 @@ public function setRedirectUrl($redirectUrl)
$this->redirectUrl = $redirectUrl;
}

/**
* @param bool $forceLogin
*/
public function setForceLogin($forceLogin)
{
$this->forceLogin = $forceLogin;
}

/**
* @param string $state
*/
Expand Down

0 comments on commit ba60046

Please sign in to comment.