replaced deprecated render function
set credentials for OAuth resource owners as parameters