Exeteres
❔ ✅ Jwt auth not working
it is not required to be a url though
it can be any string
and issuer can also be any string
but usually it is a url, yes
it is all up to you how to organize this stuff and I already mentioned that it is not required at all
18 replies
❔ ✅ Jwt auth not working
for consumer of the token
issuer is something who creates the token (
auth service
) and audience (or multiple audiences) is something that should verify the user authentication and claims (roles, for example)18 replies
❔ Clarification on Async and Task.Run
you put the bacon in the pan and walk away saying "do something about it"
someone else comes along and flips it over, spices it up and cooks it the way they want
and then calls you again
or doesn't call you at all
and your bacon gets picked up by a garbage collector, dead serious
214 replies
❔ Clarification on Async and Task.Run
it transforms your async method to state machine class with single method
MoveNext
something like
so your async method just transforms to regular sync method split by await
s
and each part ends by calling the async method, accessing task awaiter and providing MoveNext
method as a completion
that's very simplified, it's more complicated in real state machine214 replies
❔ Clarification on Async and Task.Run
it worth to mention that
await
has rather "push" semantics
it does not "await" nothing by occupying some thread
it just subscribes to this task and task will trigger the continuation after it completes (it may not complete)
and this continuation will be put to the thread pool and executed in the next available thread by default214 replies
❔ Clarification on Async and Task.Run
they have the same meanings as in other languages
and they're different
but they're integrated so well that most programmers can really not think about it
just put
await
where the Task
returns and make the method async
🙂
and it works214 replies