URL Cleanup (#42)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed But Review Recommended These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended. * [ ] http://network.pivotal.io/open-source (301) with 1 occurrences migrated to: https://network.pivotal.io/open-source ([https](https://network.pivotal.io/open-source) result ReadTimeoutException). * [ ] http://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/ (UnknownHostException) with 4 occurrences migrated to: https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/ ([https](https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/) result UnknownHostException). * [ ] http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/ (UnknownHostException) with 8 occurrences migrated to: https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/ ([https](https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/) result UnknownHostException). * [ ] http://foo.bar (UnknownHostException) with 20 occurrences migrated to: https://foo.bar ([https](https://foo.bar) result UnknownHostException). * [ ] http://username:password@192.168.0.90:1111/ (UnknownHostException) with 3 occurrences migrated to: https://username:password@192.168.0.90:1111/ ([https](https://username:password@192.168.0.90:1111/) result UnknownHostException). ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://redis.io/ with 1 occurrences migrated to: https://redis.io/ ([https](https://redis.io/) result 200). * [ ] http://redis.io/documentation with 1 occurrences migrated to: https://redis.io/documentation ([https](https://redis.io/documentation) result 200). * [ ] http://redis.io/topics/license with 1 occurrences migrated to: https://redis.io/topics/license ([https](https://redis.io/topics/license) result 200). * [ ] http://aspnetwebstack.codeplex.com/wikipage?title=Contributors with 1 occurrences migrated to: https://aspnetwebstack.codeplex.com/wikipage?title=Contributors ([https](https://aspnetwebstack.codeplex.com/wikipage?title=Contributors) result 301). # Ignored These URLs were intentionally ignored. * http://bar:11 with 3 occurrences * http://boo:222 with 4 occurrences * http://foo:11 with 3 occurrences * http://username:password@hostname:1111/ with 2 occurrences
This commit is contained in:
Родитель
8f1c270b06
Коммит
f5c8c3d2aa
|
@ -256,11 +256,11 @@ SOFTWARE.
|
|||
|
||||
Third Party Licenses:
|
||||
|
||||
The Redis project (http://redis.io/) is independent of this client library, and
|
||||
The Redis project (https://redis.io/) is independent of this client library, and
|
||||
is licensed separately under the three clause BSD license. The full license
|
||||
information can be viewed here: http://redis.io/topics/license
|
||||
information can be viewed here: https://redis.io/topics/license
|
||||
|
||||
This tool makes use of the "redis-doc" library from http://redis.io/documentation
|
||||
This tool makes use of the "redis-doc" library from https://redis.io/documentation
|
||||
in the intellisense comments, which is licensed under the
|
||||
Creative Commons Attribution-ShareAlike 4.0 International license; full
|
||||
details are available here:
|
||||
|
@ -592,7 +592,7 @@ Apache License, V2.0 is applicable to the following component(s).
|
|||
|
||||
Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||
Microsoft Open Technologies would like to thank its contributors, a list of whom
|
||||
are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors.
|
||||
are at https://aspnetwebstack.codeplex.com/wikipage?title=Contributors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you
|
||||
may not use this file except in compliance with the License. You may
|
||||
|
@ -1555,7 +1555,7 @@ available (as would be noted above), you may obtain a copy of
|
|||
the source code corresponding to the binaries for such open
|
||||
source components and modifications thereto, if any, (the
|
||||
"Source Files"), by downloading the Source Files from Pivotal's website at
|
||||
http://network.pivotal.io/open-source, or by sending a request,
|
||||
https://network.pivotal.io/open-source, or by sending a request,
|
||||
with your name and address to: Pivotal Software, Inc., 875 Howard Street, 5th
|
||||
floor, San Francisco, CA 94103, Attention: General Counsel. All such requests
|
||||
should clearly specify: OPEN SOURCE FILES REQUEST, Attention General Counsel.
|
||||
|
|
|
@ -155,9 +155,9 @@ namespace Steeltoe.CloudFoundry.Connector.Test
|
|||
'username': '03c7a684-6ff1-4bd0-ad45-d10374ffb2af',
|
||||
'port': 15672,
|
||||
'host': '192.168.0.81',
|
||||
'uri': 'http://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/',
|
||||
'uri': 'https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/',
|
||||
'uris': [
|
||||
'http://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/'
|
||||
'https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/'
|
||||
]
|
||||
},
|
||||
'amqp': {
|
||||
|
|
|
@ -46,18 +46,18 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
public void Update_WithServiceInfo_UpdatesOAuthOptions_AsExpected()
|
||||
{
|
||||
OAuthServiceOptions opts = new OAuthServiceOptions();
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "http://foo.bar");
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "https://foo.bar");
|
||||
|
||||
OAuthConfigurer configurer = new OAuthConfigurer();
|
||||
configurer.UpdateOptions(si, opts);
|
||||
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("myClientId", opts.ClientId);
|
||||
Assert.Equal("myClientSecret", opts.ClientSecret);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.True(opts.ValidateCertificates);
|
||||
Assert.NotNull(opts.Scope);
|
||||
Assert.Equal(0, opts.Scope.Count);
|
||||
|
@ -89,7 +89,7 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
[Fact]
|
||||
public void Configure_ServiceInfoOveridesConfig_ReturnsExpected()
|
||||
{
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "http://foo.bar");
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "https://foo.bar");
|
||||
OAuthConnectorOptions config = new OAuthConnectorOptions();
|
||||
OAuthConfigurer configurer = new OAuthConfigurer();
|
||||
var result = configurer.Configure(si, config);
|
||||
|
@ -98,13 +98,13 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
var opts = result.Value;
|
||||
Assert.NotNull(opts);
|
||||
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("myClientId", opts.ClientId);
|
||||
Assert.Equal("myClientSecret", opts.ClientSecret);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.True(opts.ValidateCertificates);
|
||||
Assert.NotNull(opts.Scope);
|
||||
Assert.Equal(0, opts.Scope.Count);
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
[Fact]
|
||||
public void Create_ReturnsOAuthOptions()
|
||||
{
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "http://foo.bar");
|
||||
SsoServiceInfo si = new SsoServiceInfo("myId", "myClientId", "myClientSecret", "https://foo.bar");
|
||||
OAuthConnectorOptions config = new OAuthConnectorOptions();
|
||||
|
||||
var factory = new OAuthConnectorFactory(si, config);
|
||||
|
@ -32,13 +32,13 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
var opts = result.Value;
|
||||
Assert.NotNull(opts);
|
||||
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AccessTokenUri, opts.AccessTokenUrl);
|
||||
Assert.Equal("myClientId", opts.ClientId);
|
||||
Assert.Equal("myClientSecret", opts.ClientSecret);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("http://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_JwtTokenKey, opts.JwtKeyUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_CheckTokenUri, opts.TokenInfoUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_AuthorizationUri, opts.UserAuthorizationUrl);
|
||||
Assert.Equal("https://foo.bar" + OAuthConnectorDefaults.Default_UserInfoUri, opts.UserInfoUrl);
|
||||
Assert.NotNull(opts.Scope);
|
||||
Assert.Equal(0, opts.Scope.Count);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
{
|
||||
var appsettings = new Dictionary<string, string>()
|
||||
{
|
||||
["security:oauth2:client:oauthServiceUrl"] = "http://foo.bar",
|
||||
["security:oauth2:client:oauthServiceUrl"] = "https://foo.bar",
|
||||
["security:oauth2:client:clientid"] = "clientid",
|
||||
["security:oauth2:client:clientSecret"] = "clientsecret",
|
||||
["security:oauth2:client:userAuthorizationUri"] = "userauthorizationuri",
|
||||
|
@ -58,7 +58,7 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
Assert.Equal("clientid", sconfig.ClientId);
|
||||
Assert.Equal("clientsecret", sconfig.ClientSecret);
|
||||
Assert.Equal("jwtkeyuri", sconfig.JwtKeyUri);
|
||||
Assert.Equal("http://foo.bar", sconfig.OAuthServiceUrl);
|
||||
Assert.Equal("https://foo.bar", sconfig.OAuthServiceUrl);
|
||||
Assert.Equal("tokeninfouri", sconfig.TokenInfoUri);
|
||||
Assert.Equal("userauthorizationuri", sconfig.UserAuthorizationUri);
|
||||
Assert.Equal("userinfouri", sconfig.UserInfoUri);
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace Steeltoe.CloudFoundry.Connector.Services.Test
|
|||
{ "client_id", new Credential("clientId") },
|
||||
{ "client_secret", new Credential("clientSecret") },
|
||||
{ "access_token_uri", new Credential("https://p-spring-cloud-services.uaa.my-cf.com/oauth/token") },
|
||||
{ "uri", new Credential("http://username:password@192.168.0.90:1111/") },
|
||||
{ "uri", new Credential("https://username:password@192.168.0.90:1111/") },
|
||||
}
|
||||
};
|
||||
EurekaServiceInfoFactory factory = new EurekaServiceInfoFactory();
|
||||
|
@ -78,7 +78,7 @@ namespace Steeltoe.CloudFoundry.Connector.Services.Test
|
|||
{ "client_id", new Credential("clientId") },
|
||||
{ "client_secret", new Credential("clientSecret") },
|
||||
{ "access_token_uri", new Credential("https://p-spring-cloud-services.uaa.my-cf.com/oauth/token") },
|
||||
{ "uri", new Credential("http://username:password@192.168.0.90:1111/") },
|
||||
{ "uri", new Credential("https://username:password@192.168.0.90:1111/") },
|
||||
}
|
||||
};
|
||||
EurekaServiceInfoFactory factory = new EurekaServiceInfoFactory();
|
||||
|
@ -92,7 +92,7 @@ namespace Steeltoe.CloudFoundry.Connector.Services.Test
|
|||
Assert.Equal("clientId", info.ClientId);
|
||||
Assert.Equal("clientSecret", info.ClientSecret);
|
||||
Assert.Equal("https://p-spring-cloud-services.uaa.my-cf.com/oauth/token", info.TokenUri);
|
||||
Assert.Equal("http://username:password@192.168.0.90:1111/", info.Uri);
|
||||
Assert.Equal("https://username:password@192.168.0.90:1111/", info.Uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -229,9 +229,9 @@ namespace Steeltoe.CloudFoundry.Connector.Services.Test
|
|||
'username': 'a0f39f25-28a2-438e-a0e7-6c09d6d34dbd',
|
||||
'port': 15672,
|
||||
'host': '192.168.1.55',
|
||||
'uri': 'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uri': 'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uris': [
|
||||
'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -203,9 +203,9 @@ namespace Steeltoe.CloudFoundry.Connector.Services.Test
|
|||
'username': '03c7a684-6ff1-4bd0-ad45-d10374ffb2af',
|
||||
'port': 15672,
|
||||
'host': '192.168.0.81',
|
||||
'uri': 'http://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/',
|
||||
'uri': 'https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/',
|
||||
'uris': [
|
||||
'http://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/'
|
||||
'https://03c7a684-6ff1-4bd0-ad45-d10374ffb2af:l5oq2q0unl35s6urfsuib0jvpo@192.168.0.81:15672/api/'
|
||||
]
|
||||
},
|
||||
'amqp': {
|
||||
|
|
|
@ -155,9 +155,9 @@ namespace Steeltoe.CloudFoundry.Connector.Hystrix.Test
|
|||
'username': 'a0f39f25-28a2-438e-a0e7-6c09d6d34dbd',
|
||||
'port': 15672,
|
||||
'host': '192.168.1.55',
|
||||
'uri': 'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uri': 'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uris': [
|
||||
'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -223,9 +223,9 @@ namespace Steeltoe.CloudFoundry.Connector.Hystrix.Test
|
|||
'username': 'a0f39f25-28a2-438e-a0e7-6c09d6d34dbd',
|
||||
'port': 15672,
|
||||
'host': '192.168.1.55',
|
||||
'uri': 'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uri': 'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uris': [
|
||||
'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -319,9 +319,9 @@ namespace Steeltoe.CloudFoundry.Connector.Hystrix.Test
|
|||
'username': 'a0f39f25-28a2-438e-a0e7-6c09d6d34dbd',
|
||||
'port': 15672,
|
||||
'host': '192.168.1.55',
|
||||
'uri': 'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uri': 'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/',
|
||||
'uris': [
|
||||
'http://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
'https://a0f39f25-28a2-438e-a0e7-6c09d6d34dbd:1clgf5ipeop36437dmr2em4duk@192.168.1.55:15672/api/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче