How to pass custom parameter to a custom OAuth2 connection?

Looks like this will solve my problem quite well. Thank you!