Thanks @yashag2255 .
The API I'm trying to authorize with requires the OAuth2 authorization URL to be of the following form:
https://the.api.server.com/oauth?type=web_server&client_id={client_id}&redirect_uri={redirect_uri}&scope={scope}&state={state}The type parameter is required for this API (in this case, with string literal "web_server").
When creating the custom connector in Microsoft Flow, I can set the Authentication type to OAuth 2.0, and set the Identity Provider to Generic OAuth2. This allows the other authorization parameters to be set (client id, redirect url and scope). But there is no way to specify the extra type parameter.
If I append it to the Authorization URL (i.e. https://the.api.server.com/oauth?type_web_server), Microsoft Flow appends another "?" character before the other parameters. The second "?" results in the API server rejecting the authorisation request.
Does that make sense? It's quite possible I've missed something basic, as I'm very new to OAuth2.
I'm grateful for any help you can give in pointing me in the right direction. Thanks!