fullstackhero / blazor-starter-kit

Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
MIT License
3.48k stars 730 forks source link

Where is Swagger APIkey from the user? #356

Closed BarehSolok closed 2 years ago

BarehSolok commented 2 years ago

There is no documentation so i'm lost

jeremiedevos commented 2 years ago

Navigate to the /catalog/products page press f12 > Fetch/XHR then press the reload button. In the developers window there is a new call to product?.... select that and the headers. The key is now in the authorization part. image

MomboMan commented 2 years ago

Additional note. Paste the word 'Bearer', a single space then the key and nothing else. Like this: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aX....eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aX with no quotes or anything.

BarehSolok commented 2 years ago

thanks, i just realized i can also use login api to get the token