Hello,
I've created a partner connector following the authentication samples from google, using PATH_USER_PASS auth type.
My "IsAuthValid" function looks very similar to the one presented in the google's documentation in "PATH_USER_PASS" tab: https://developers.google.com/looker-studio/connector/auth#isauthvalid
The problem here is that because we're saving the path/username/pass to the static keys: dscc.path, dscc.username, dscc.pass- it enables user to connect to only one combination of path/username/pass using our connector. We'd like to enable users to be able to connect to our connector multiple times - with different combinations of path/username/pass on one google account.
Currently, when users are using the "datasources/create?connectorId=" link, the first connection works fine, but for a second connection (to the same connector, but with a different instance of our API) on the same google account, it uses the previously provided path/username/pass from those "dscc" properties, effectively using the same exact path/username/pass , where we'd like to provide a different combination here for a new datasource. As it is currently it doesn't make sense, because it creates a new datasource but with exactly the same "path/user/pass" globally for one user.
The problem is that as far as I know, there's no way to get "datasourceId" anywhere in the code. If it would be possible, then we'd be able to create dynamic keys using this value, which would enable users to create multiple datasources using the same connector.
Thank you for any help in this regard.