How to pass custom parameter to a custom OAuth2 connection?

BTW if I want to pass in multiple parameters, how should they be encoded? Just url encoded?