Skip to content

[Bug] Don't use ].DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken) in samples/templates #350

Description

@jmprieur

In the templates and dev samples, don't use

[httpClient].DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);

but rather create a HttpRequestMessage and add the header tot he request.

https://github.com/AzureAD/microsoft-identity-web/search?q=DefaultRequestHeaders.Authorization&unscoped_q=DefaultRequestHeaders.Authorization

Metadata

Metadata

Assignees

Labels

P1bugSomething isn't workingfixed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions