Skip to content

Commit

Permalink
initial commit - hybrid spa (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Feb 14, 2022
1 parent e0fc340 commit c29ba1c
Show file tree
Hide file tree
Showing 5 changed files with 2,156 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Microsoft.Identity.Web/Constants/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public static class Constants
/// </summary>
public const string Policy = "policy";

/// <summary>
/// SpaAuthCode.
/// Key to retreive SpaAuthCode from the HttpContext.
/// </summary>
public const string SpaAuthCode = "SpaAuthCode";

// IssuerMetadata
internal const string TenantDiscoveryEndpoint = "tenant_discovery_endpoint";
internal const string ApiVersion = "api-version";
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.Identity.Web/MergedOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ internal static void UpdateMergedOptionsFromMicrosoftIdentityOptions(MicrosoftId
mergedOptions.SaveTokens = microsoftIdentityOptions.SaveTokens;
mergedOptions.SecurityTokenValidator ??= microsoftIdentityOptions.SecurityTokenValidator;
mergedOptions.SendX5C = microsoftIdentityOptions.SendX5C;
mergedOptions.WithSpaAuthCode = microsoftIdentityOptions.WithSpaAuthCode;
mergedOptions.SignedOutCallbackPath = microsoftIdentityOptions.SignedOutCallbackPath;
if (string.IsNullOrEmpty(mergedOptions.SignedOutRedirectUri) && !string.IsNullOrEmpty(microsoftIdentityOptions.SignedOutRedirectUri))
{
Expand Down
Loading

0 comments on commit c29ba1c

Please sign in to comment.