Fixed rest auth wrapper