havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
463 stars 63 forks source link

File upload API #828

Closed franky1017 closed 1 month ago

franky1017 commented 1 month ago

Looking at the file upload component, I noticed this code block:

` // WASM: //var accessTokenResult = await AccessTokenProvider.RequestAccessToken(); //if (accessTokenResult.Status == AccessTokenResultStatus.Success) //{ // if (accessTokenResult.TryGetToken(out var token)) // { // accessToken = token.Value; // } //} What is this used for? I am using the latest blazor web app (interactive auto mode) so I won't be sure my component is in server or client mode.

How is this access token used by the api end point? Do you have a sample implementation of such api?

Thanks!`

franky1017 commented 1 month ago

NVM, I figured it out, it's a bearer token! Wish it was documented somewhere :-)

hakenr commented 3 weeks ago

Duplicates #820.