Skip to content

Commit 0b0bc47

Browse files
msJinLeiCopilot
andcommitted
Update src/Accounts/Accounts/CommonModule/ContextAdapter.cs
Co-authored-by: Copilot <[email protected]>
1 parent fafc740 commit 0b0bc47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Accounts/Accounts/CommonModule/ContextAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ internal async Task<IAccessToken> AuthorizeRequest(IAzureContext context, HttpRe
280280
endpointResourceIdKey = tokenAudience ?? endpointResourceIdKey;
281281
}
282282
var optionalParameters = new Dictionary<string, object>() { { AuthenticationFactory.ResourceIdParameterName, endpointResourceIdKey } };
283-
if (extensibleParamters != null && extensibleParamters.ContainsKey(AuthenticationFactory.CmdletContextParameterName))
283+
if (extensibleParameters != null && extensibleParameters.ContainsKey(AuthenticationFactory.CmdletContextParameterName))
284284
{
285-
optionalParameters.Add(AuthenticationFactory.CmdletContextParameterName, extensibleParamters[AuthenticationFactory.CmdletContextParameterName]);
285+
optionalParameters.Add(AuthenticationFactory.CmdletContextParameterName, extensibleParameters[AuthenticationFactory.CmdletContextParameterName]);
286286
}
287287
var authToken = _authenticator.Authenticate(context.Account, context.Environment, context.Tenant.Id, null, "Never", null, optionalParameters);
288288
authToken.AuthorizeRequest((type, token) => request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(type, token));

0 commit comments

Comments
 (0)