For the internal use to get access_token