Blazor WASM cookie security for web APIs #32028
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #32008
Jeremy ... Three things on this one ...
Do you want to say more than this in the Call web API article? I figure that this along with the Standalone with Identity article (+sample), which is cross-linked here, should be enough. Are there any 😈 gotchas to call out or anything else?
AFAIK, the only versioning that this needs is for the Standalone with Identity article (>=8.0). I think the rest of this always worked. AFAIK, we just didn't have it because we were pushing token auth for just about everything. We have a bit of this in the next section, which is generalized for Fetch API options. We just didn't have it in a dedicated cookie auth section. Anyway, any concerns about showing this for all versions?
The API engineering comment for the handler for
AddHttpMessageHandler
states emphatically ...... but it's registered scoped ...
What's the story on that? I feel like we need to explain this exception to the rule in the article where I show the service registration.
... and just an FYI that I added a second seeded test user to the sample app and a second roles-authorized endpoint with a page where Leela can call both endpoints and Harry can only call one. dotnet/blazor-samples#241
Internal previews