| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a6449e commit c00a37e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ | |||
| 9 | 9 | using System.Security.Claims; | |
| 10 | 10 | using Microsoft.AspNetCore.Http; | |
| 11 | 11 | using System.Diagnostics.CodeAnalysis; | |
| 12 | + using Sustainsys.Saml2.Metadata; | ||
| 12 | 13 | ||
| 13 | 14 | namespace Sustainsys.Saml2.AspNetCore2 | |
| 14 | 15 | { | |
@@ -85,12 +86,11 @@ public async Task ChallengeAsync(AuthenticationProperties properties) | |||
| 85 | 86 | ||
| 86 | 87 | var requestData = context.ToHttpRequestData(null); | |
| 87 | 88 | ||
| 88 | - | ||
| 89 | - Metadata.EntityId entityId = null; | ||
| 89 | + EntityId entityId = null; | ||
| 90 | 90 | ||
| 91 | 91 | if (properties.Items.TryGetValue("idp", out var entityIdString)) | |
| 92 | 92 | { | |
| 93 | - entityId = new Metadata.EntityId(entityIdString); | ||
| 93 | + entityId = new EntityId(entityIdString); | ||
| 94 | 94 | } | |
| 95 | 95 | ||
| 96 | 96 | var result = SignInCommand.Run( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -145,14 +145,6 @@ public async Task Saml2Handler_ChallengeAsync_RedirectsToSelectedIdp() | |||
| 145 | 145 | response.StatusCode.Should().Be(303); | |
| 146 | 146 | response.Headers["Location"].Single() | |
| 147 | 147 | .Should().StartWith("https://idp2.example.com/sso?SAMLRequest="); | |
| 148 | - | ||
| 149 | - var state = new StoredRequestState(StubDataProtector.Unprotect( | ||
| 150 | - HttpRequestData.GetBinaryData(cookieData))); | ||
| 151 | - | ||
| 152 | - state.ReturnUrl.OriginalString.Should().Be("https://sp.example.com/LoggedIn"); | ||
| 153 | - | ||
| 154 | - // Don't dual-store the return-url. | ||
| 155 | - state.RelayData.Values.Should().NotContain("https://sp.example.com/LoggedIn"); | ||
| 156 | 148 | } | |
| 157 | 149 | ||
| 158 | 150 | [TestMethod] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments