Skip to content

Commit 647de53

Browse files
authored
Update authorize-oauth-rest.md
- Update the service version in ShareClientOptions: The current service version in the example does not support the Bearer authentication scheme for files. Additionally, it does not support trailing dot headers. To address these limitations, update the Service Version to the latest available version. - Correct the option name for trailing dots: The erroneous option 'SourceAllowTrailingDot' in the example should be replaced with the correct option name 'AllowSourceTrailingDot'. This change ensures proper handling of trailing dots in file names. - Change the File Share variable name: The current file share name 'testShare' is not in compliance with the naming conventions, which only allow lowercase letters. Change the share name to 'test-share' to adhere to these conventions.
1 parent f116c96 commit 647de53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/storage/files/authorize-oauth-rest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace FilesOAuthSample
108108
string aadEndpoint = "";
109109
string accountUri = "";
110110
string connectionString = "";
111-
string shareName = "testShare";
111+
string shareName = "test-share";
112112
string directoryName = "testDirectory";
113113
string fileName = "testFile";
114114
@@ -124,11 +124,11 @@ namespace FilesOAuthSample
124124
AuthorityHost = new Uri(aadEndpoint)
125125
});
126126
127-
ShareClientOptions clientOptions = new ShareClientOptions(ShareClientOptions.ServiceVersion.V2021_12_02);
127+
ShareClientOptions clientOptions = new ShareClientOptions(ShareClientOptions.ServiceVersion.V2023_05_03);
128128
129129
// Set Allow Trailing Dot and Source Allow Trailing Dot.
130130
clientOptions.AllowTrailingDot = true;
131-
clientOptions.SourceAllowTrailingDot = true;
131+
clientOptions.AllowSourceTrailingDot = true;
132132
133133
// x-ms-file-intent=backup will automatically be applied to all APIs
134134
// where it is required in derived clients.

0 commit comments

Comments
 (0)