ApiController::setSessionByApiSession
Use the api accesstoken auth process to define a user session in SilverStripe By default SilverStripe using a form + session stored auth process, but with stateless restful we actually don't need request outlasting sessions (only for SilverStripe specifics mechanims, like Permission::check() etc.)
Signature
protected function setSessionByApiSession()
Returns
- int
- ID of the "logged in" member