Http task and oauth2

I want to call a service by a url in a http task. the service that I want to call uses oauth2 for authentication, so I need to send some data like username, password, client Id and … in runtime. there is no field in http task to be filled with these information. I will appreciate if you help me.