Hello,
I have a custom connector which uses oAuth authentication (Generic oAuth).
I am using environment variables for my client id and secret which in turn connects to Azure Key Vault. But when I import the solution in the environment it seems the client secret is getting cleared inside the custom connector. I am using client secret as @environmentVariables("clpr_ClientSecret") inside my connector.
Then I have to edit the connector manually in the solution in the target environment and put the client secret again as @environmentVariables("clpr_ClientSecret"), which solves the problem, but it turns my solution from managed to unmanaged solution( which is a bigger problem).
Not sure what can be done here? this does not seem to be desired behavior
In my export of the solution the connector connection parameters file is missing client secret. This has been changed recently may be with new powerapps platform version as in my previous solutions i can see client secret as well-
{
"token": {
"type": "oauthSetting",
"oAuthSettings": {
"identityProvider": "oauth2",
"clientId": "@environmentVariables(\"clpr_ClientID\")",
"scopes": [],
"redirectMode": "GlobalPerConnector",
"properties": {
"IsFirstParty": "False",
"IsOnbehalfofLoginSupported": false
},
"customParameters": {
"AuthorizationUrl": {
},
"TokenUrl": {
},
"RefreshUrl": {
}
}
}
}
}
Also there are few more properties that are updated as shown below.

left is old solution exported 2 weeks back and right is new solution exported yestarday.
It seems MS has changed few things.
Anyone else had this issue? Any help is highly appreciated. Thank you.