Default to challenge response authentication (CRA)
Closed this issue · 1 comments
clue commented
Concept:
public function loginChallenge($username, $secret, $events = null)
{
$events = $this->boolParam($events);
$client = $this->client;
return $this->challenge()->then(function (ActionResponse $response) use ($username, $secret, $client, $events) {
$key = md5($response->getPart('Challenge') . $secret);
return $client->request(new ActionRequest('Login', array('Username' => $username, 'Key' => $key, 'Events' => $events)));
});
}
clue commented
I still think that this feature would make perfect sense 👍 However, there are currently no immediate plans to build this from my end (no demand at the moment), but I would be really happy to accept PRs 👍
(If you need this for a commercial project and you want a quote, please check out my profile and send me an email)