Skip to content
Snippets Groups Projects
Commit c257b37d authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#61600_l_api_oauth_doit_logguer_l_utilisateur_dans_bokeh'...

Merge branch 'hotline#61600_l_api_oauth_doit_logguer_l_utilisateur_dans_bokeh' into 'hotline-master'

hotline #61600 : user loggued in when OAuth token is valid

See merge request !2187
parents 658d45cc 9584208a
Branches
Tags
4 merge requests!2334Master,!2189Master,!2188Hotline master,!2187hotline #61600 : user loggued in when OAuth token is valid
Pipeline #1700 passed with stage
in 13 minutes and 16 seconds
- ticket #61600 : API OAuth : ajout de la possibilité de SSO après validation d'un jeton OAuth
\ No newline at end of file
......@@ -38,6 +38,7 @@ class Api_UserController extends ZendAfi_Controller_Action {
if (!$user = $token->getUser())
return $this->_error($this->_('Utilisateur non trouvé'));
ZendAfi_Auth::getInstance()->logUser($user);
$this->view->loans = (new Class_User_Cards($user))->getLoans();
}
......
......@@ -107,6 +107,12 @@ class Scenario_MobileApplication_UserAccountWithTokenTest extends Scenario_Mobil
'value' => 'application/json'],
$this->_response->getHeaders()[0]);
}
/** @test */
public function userShouldBeLoggued() {
$this->assertNotNull(Class_Users::getIdentity());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment