URL Cleanup (#44)
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://steeltoe.io with 7 occurrences migrated to: https://steeltoe.io ([https](https://steeltoe.io) result 200). * [ ] http://steeltoe.io/ with 7 occurrences migrated to: https://steeltoe.io/ ([https](https://steeltoe.io/) result 200). * [ ] http://steeltoe.io/images/transparent.png with 7 occurrences migrated to: https://steeltoe.io/images/transparent.png ([https](https://steeltoe.io/images/transparent.png) result 200). * [ ] http://www.npgsql.org/ with 1 occurrences migrated to: https://www.npgsql.org/ ([https](https://www.npgsql.org/) 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:
Родитель
6abe662fdb
Коммит
7e435518ef
|
@ -20,7 +20,7 @@ While the primary usage of the connectors is intended to be with ASP.NET Core ap
|
|||
Depending on their level of support, the connectors and samples have been tested on .NET Core 1.1, .NET 4.5.1/4.6.x, and on ASP.NET Core 1.1.0.
|
||||
|
||||
# Usage
|
||||
For more information on how to use these components see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use these components see the online [Steeltoe documentation](https://steeltoe.io/).
|
||||
|
||||
# Nuget Feeds
|
||||
All new connector development is done on the dev branch. More stable versions of the connectors can be found on the master branch. The latest prebuilt packages from each branch can be found on one of two MyGet feeds. Released version can be found on nuget.org.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
This project contains a Steeltoe Connector for Hystrix Dashboard.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.Hystrix</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.Hystrix</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;Hystrix;Dashboard</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
This project contains a Steeltoe Connector for MySql. This connector simplifies using [Connector/NET - 6.9.9/7.0.x](https://dev.mysql.com/downloads/connector/net/) in an application running on CloudFoundry.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.MySql</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.MySql</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;MySql</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@ This project contains a Steeltoe Connector for OAuth services. This connector s
|
|||
|
||||
It exposes the OAuth service configuration data as injectable `IOption<OAuthServiceOptions>`. This connector is used by the ASP.NET Core [CloudFoundry External Security Provider](https://github.com/SteeltoeOSS/Security), but can be used standalone as well.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.OAuth</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.OAuth</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;OAuth2;SSO;Security</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# CloudFoundry .NET Postgres Connector
|
||||
|
||||
This project contains a Steeltoe Connector for Postgres. This connector simplifies using [Npgsql - 3.1.9](http://www.npgsql.org/) in an application running on CloudFoundry.
|
||||
This project contains a Steeltoe Connector for Postgres. This connector simplifies using [Npgsql - 3.1.9](https://www.npgsql.org/) in an application running on CloudFoundry.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.PostgreSql</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.PostgreSql</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;Postgres</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
This project contains a Steeltoe Connector for Rabbit.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.Rabbit</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.Rabbit</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;Rabbit</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
This project contains a Steeltoe Connector for Redis. This connector simplifies using Microsoft [RedisCache](https://github.com/aspnet/Caching/tree/dev/src/Microsoft.Extensions.Caching.Redis) and/or StackExchange [ConnectionMultiplexor](https://github.com/StackExchange/StackExchange.Redis) in an application running on CloudFoundry.
|
||||
|
||||
For more information on how to use this component see the online [Steeltoe documentation](http://steeltoe.io/).
|
||||
For more information on how to use this component see the online [Steeltoe documentation](https://steeltoe.io/).
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector.Redis</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector.Redis</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors;Redis</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>Steeltoe.CloudFoundry.Connector</AssemblyName>
|
||||
<PackageId>Steeltoe.CloudFoundry.Connector</PackageId>
|
||||
<PackageTags>CloudFoundry;ASPNET Core;Connectors</PackageTags>
|
||||
<PackageIconUrl>http://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>http://steeltoe.io</PackageProjectUrl>
|
||||
<PackageIconUrl>https://steeltoe.io/images/transparent.png</PackageIconUrl>
|
||||
<PackageProjectUrl>https://steeltoe.io</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -182,9 +182,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/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -250,9 +250,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/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -368,9 +368,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/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -51,19 +51,19 @@ 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);
|
||||
|
@ -95,7 +95,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);
|
||||
|
@ -105,13 +105,13 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
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);
|
||||
|
|
|
@ -24,7 +24,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);
|
||||
|
@ -35,13 +35,13 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace Steeltoe.CloudFoundry.Connector.OAuth.Test
|
|||
'security': {
|
||||
'oauth2': {
|
||||
'client': {
|
||||
'oauthServiceUrl': 'http://foo.bar',
|
||||
'oauthServiceUrl': 'https://foo.bar',
|
||||
'clientId': 'clientid',
|
||||
'clientSecret': 'clientsecret',
|
||||
'userAuthorizationUri': 'userauthorizationuri',
|
||||
|
@ -74,7 +74,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);
|
||||
|
|
|
@ -178,9 +178,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': {
|
||||
|
|
|
@ -34,7 +34,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();
|
||||
|
@ -77,7 +77,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();
|
||||
|
@ -91,7 +91,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -224,9 +224,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/'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -194,9 +194,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': {
|
||||
|
|
Загрузка…
Ссылка в новой задаче