rename endpoint variable

use renamed endpoints variable in oauth model