-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Fixes #4112 #4093] Adding support for custom SSL port #4113
Conversation
@@ -6,6 +6,9 @@ | |||
using Microsoft.AspNetCore.Mvc.Abstractions; | |||
using Microsoft.AspNetCore.Mvc.Filters; | |||
using Microsoft.AspNetCore.Routing; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using Microsoft.Extensions.Options; | |||
using System; |
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.
Nit: sort using a properly
c943458
to
49112c0
Compare
[InlineData("http://localhost:5000", null, "https://localhost/")] | ||
[InlineData("http://[2001:db8:a0b:12f0::1]", null, "https://[2001:db8:a0b:12f0::1]/")] | ||
[InlineData("http://[2001:db8:a0b:12f0::1]:5000", null, "https://[2001:db8:a0b:12f0::1]/")] | ||
[InlineData("http://localhost:5000/path", null, "https://localhost/path")] |
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.
Can you add variation(s) having query string too?
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.
Done
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 @sebastienros Just FYI...you seem to have squashed your commits. This makes it difficult to find the differences(to see how the feedback was addressed) from earlier commit. You could squash the commits once you get a sign off.
71893dd
to
4440358
Compare
Looks good to me, |
@@ -16,6 +19,8 @@ public class RequireHttpsAttributeTests | |||
public void OnAuthorization_AllowsTheRequestIfItIsHttps() | |||
{ | |||
// Arrange | |||
var options = new TestOptionsManager<MvcOptions>(); |
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.
Remove. This isn't used.
4440358
to
27924ff
Compare
27924ff
to
c259f82
Compare
New optional MvcOptions.SslPort. If not defined the redirection uses an empty port (default),
otherwise the custom port is used.