Skip to content

Commit c50a02a

Browse files
authored
Update InvalidScopeMessage allowed characters list (Azure#33027)
Co-authored-by: Anton Kolesnyk <[email protected]>
1 parent c4b93bf commit c50a02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/identity/Azure.Identity/src/ScopeUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal static class ScopeUtilities
1515
private const string DefaultSuffix = "/.default";
1616
private const string ScopePattern = "^[0-9a-zA-Z-_.:/]+$";
1717

18-
private const string InvalidScopeMessage = "The specified scope is not in expected format. Only alphanumeric characters, '.', '-', ':', and '/' are allowed";
18+
private const string InvalidScopeMessage = "The specified scope is not in expected format. Only alphanumeric characters, '.', '-', ':', '_', and '/' are allowed";
1919
private static readonly Regex scopeRegex = new Regex(ScopePattern);
2020

2121
public static string ScopesToResource(string[] scopes)

0 commit comments

Comments
 (0)