Open satumkurmsft opened 1 year ago
I would be interested in that as well. How is the user of the generated SDK supposed to override the scopes and set them dynamically to support switching from one Application URI to another; for example to either target the DEV instance of the REST API or the PROD instance (if two separate App Registrations exist)?
Need typespec to define how to define a scope parameter which can updated, not a constant tuple.
Describe the issue or request We cannot override or add more scopes to the SDK. It would be great to have a way to do this
We have the following declaration to allow Apikey and Token based auth
In the generated C# SDK, this seems to be hard-coding the
authorizationScope
value when it createsBearerTokenAuthenticationPolicy
. But we have a unique situation where in dev environment, we support anotherscope
and want to use that to get tokens.