-
Notifications
You must be signed in to change notification settings - Fork 171
Account for ASP.NET Core changes around proxy header handling #1525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bart-vmware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for diving into this. I haven't tested the changes, assuming you did.
src/Security/src/Authorization.Certificate/CertificateAuthorizationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Security/src/Authorization.Certificate/CertificateAuthorizationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
Yes, but also because SteeltoeOSS/Samples#391 works with the same set of sample apps and I was hitting weird probably-environment issues during my first round of testing, I was already planning to leave this PR draft/open while wrapping up the other effort |
9f1e858 to
020bf64
Compare
80a4e65 to
e4ad593
Compare
src/Common/test/Hosting.Test/ServiceCollectionExtensionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Hosting.Test/ServiceCollectionExtensionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Hosting.Test/ServiceCollectionExtensionsTest.cs
Outdated
Show resolved
Hide resolved
e4ad593 to
9c0da20
Compare
src/Configuration/test/CloudFoundry.Test/CloudFoundryServiceCollectionExtensionsTest.cs
Outdated
Show resolved
Hide resolved
6060fe5 to
4c090b6
Compare
- Move reverse proxy configuration to Common - When present, add networks for CF_INSTANCE IP vars to KnownNetworks - Parameter-less UseCertificateAuthorization now tries to retrieve ForwardedHeadersOptions from DI container before falling back on creating a new instance
- Move new ServiceCollectionExtension to Configuration.CloudFoundry - Use IConfigureOptions<ForwardedHeadersOptions> - add missing using on ServiceProviders, true in BuildServiceProvider - more consistent usage of EnvironmentVariableScope - remove CF_INSTANCE var parsing option
Co-authored-by: Bart Koelman <[email protected]>
4c090b6 to
4ab97af
Compare
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Security/src/Authorization.Certificate/CertificateApplicationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Security/src/Authorization.Certificate/CertificateApplicationBuilderExtensions.cs
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Show resolved
Hide resolved
src/Configuration/test/CloudFoundry.Test/CloudfoundryConfigurationProviderTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Bart Koelman <[email protected]>
|



Description
Provides a fix for #1524 that is automatically implemented when using the CloudFoundry configuration provider
Quality checklist
If your change affects other repositories, such as Documentation, Samples and/or MainSite, add linked PRs here.