stavroskasidis / BlazorWithIdentity

A project template for a blazor hosted app using cookie based authentication with ef core identity.
MIT License
458 stars 106 forks source link

How is HttpClient authenticated. There is no access token or code passed when adding the httpclient to services DI #18

Closed prince272 closed 3 years ago

prince272 commented 3 years ago

I think I've found the solution. When you sign in using the httpclient the access tokens are sent and stored in the httpclient headers.

Please let me know if I'm right. If you have a better explanations to this, please let me know.

stavroskasidis commented 3 years ago

It is a cookie based authentication. The auth cookie is automatically passed to the server with every request.

prince272 commented 3 years ago

Okay! Thanks!