Ideally this has already been handled by OC, the login via REST is not handled yet