Repository navigation
Add .NET 10 Blazor Hybrid sample with Microsoft Entra - #688
Draft
mattleibow wants to merge 4 commits into
Draft
mattleibow wants to merge 4 commits into
mattleibow wants to merge 4 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mattleibow
force-pushed
the
mattleibow-entra-external-id-sample
branch
from
October 31, 2026 03:08
a8c5dfa to
ac7e3c6
Compare
Keep authentication setup inline and use in-memory IConfiguration settings with the consolidated native MSAL client. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mattleibow
force-pushed
the
mattleibow-entra-external-id-sample
branch
from
October 31, 2026 03:40
91ca89a to
eee9109
Compare
Restore the MsalConfig record and profile constants, and construct the singleton MsalClient through constructor injection instead of an explicit service-provider factory. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mattleibow
marked this pull request as draft
October 31, 2026 03:54
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a Microsoft Entra alternative to the .NET 10 Blazor Hybrid Identity sample, supporting either External ID customer tenants or workforce tenants without duplicating the sample. The existing local-account sample is unchanged.
Approach
MsalConfigrecord registration. DI constructor-injects the record into the singletonMsalClient, which exposes it throughConfiguration; the authentication service receives the client rather than a separate configuration object. External ID remains the default; only one profile is active per run.ASWebAuthenticationSessionadapter. Register both profiles' native callback schemes and isolate browser cookies/native caches between configurations.Weather.Readdelegated scope. Do not treat ID tokens as API access tokens.Validation