Skip to content

Commit

Permalink
Open Change default scope for Form Recognizer V2 clients (#30988)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Sep 16, 2022
1 parent 953cc06 commit 7fd7de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ public final class Utility {
private static final ClientLogger LOGGER = new ClientLogger(Utility.class);
private static final String CLIENT_NAME;
private static final String CLIENT_VERSION;

private static final String DEFAULT_SCOPE = "/.default";

static {
Map<String, String> properties = CoreUtils.getProperties(Constants.FORM_RECOGNIZER_PROPERTIES);
CLIENT_NAME = properties.getOrDefault(Constants.NAME, "UnknownName");
CLIENT_VERSION = properties.getOrDefault(Constants.VERSION, "UnknownVersion");
}
static final String DEFAULT_SCOPE = "/.default";

private Utility() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
public final class Utility {
private static final ClientLogger LOGGER = new ClientLogger(Utility.class);

private static final String DEFAULT_SCOPE = "https://cognitiveservices.azure.com/.default";
private static final String DEFAULT_SCOPE = "/.default";
private static final String FORM_RECOGNIZER_PROPERTIES = "azure-ai-formrecognizer.properties";
private static final String NAME = "name";
private static final String OCP_APIM_SUBSCRIPTION_KEY = "Ocp-Apim-Subscription-Key";
Expand Down

0 comments on commit 7fd7de5

Please sign in to comment.