Changed rest auth method