Browse Source
Remove the .Internal namespace and make the pubternal types public or internal
pull/715/head
Kévin Chalet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with
68 additions and
98 deletions
-
build/common.props
-
build/packages.props
-
src/OpenIddict.Mvc/OpenIddictMvcBinder.cs
-
src/OpenIddict.Mvc/OpenIddictMvcBinderProvider.cs
-
src/OpenIddict.Mvc/OpenIddictMvcConfiguration.cs
-
src/OpenIddict.Mvc/OpenIddictMvcExtensions.cs
-
src/OpenIddict.Server/OpenIddictServerConfiguration.cs
-
src/OpenIddict.Server/OpenIddictServerExtensions.cs
-
src/OpenIddict.Server/OpenIddictServerHandler.cs
-
src/OpenIddict.Server/OpenIddictServerOptions.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Authentication.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Discovery.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Exchange.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Helpers.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Introspection.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Revocation.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Serialization.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Session.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.Userinfo.cs
-
src/OpenIddict.Server/OpenIddictServerProvider.cs
-
src/OpenIddict.Server/Properties/AssemblyInfo.cs
-
src/OpenIddict.Validation/OpenIddictValidationConfiguration.cs
-
src/OpenIddict.Validation/OpenIddictValidationExtensions.cs
-
src/OpenIddict.Validation/OpenIddictValidationHandler.cs
-
src/OpenIddict.Validation/OpenIddictValidationHelpers.cs
-
src/OpenIddict.Validation/OpenIddictValidationOptions.cs
-
src/OpenIddict.Validation/OpenIddictValidationProvider.cs
-
src/OpenIddict.Validation/Properties/AssemblyInfo.cs
-
test/OpenIddict.MongoDb.Tests/OpenIddict.MongoDb.Tests.csproj
-
test/OpenIddict.Mvc.Tests/OpenIddictMvcConfigurationTests.cs
-
test/OpenIddict.Mvc.Tests/OpenIddictMvcExtensionsTests.cs
-
test/OpenIddict.Mvc.Tests/OpenIddictMvcModelBinderProviderTests.cs
-
test/OpenIddict.Mvc.Tests/OpenIddictMvcModelBinderTests.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerConfigurationTests.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerExtensionsTests.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Authentication.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Discovery.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Exchange.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Introspection.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Revocation.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Serialization.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Session.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.Userinfo.cs
-
test/OpenIddict.Server.Tests/OpenIddictServerProviderTests.cs
-
test/OpenIddict.Validation.Tests/OpenIddictValidationConfigurationTests.cs
-
test/OpenIddict.Validation.Tests/OpenIddictValidationExtensionsTests.cs
-
test/OpenIddict.Validation.Tests/OpenIddictValidationProviderTests.cs
|
|
|
@ -11,6 +11,9 @@ |
|
|
|
<DebugType>full</DebugType> |
|
|
|
<DebugType Condition=" '$(Configuration)' != 'Debug' ">pdbonly</DebugType> |
|
|
|
<DebugType Condition=" '$(OS)' != 'Windows_NT' ">portable</DebugType> |
|
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)key.snk</AssemblyOriginatorKeyFile> |
|
|
|
<SignAssembly>true</SignAssembly> |
|
|
|
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<Target Name="WorkaroundAppConfigPathTooLong" BeforeTargets="GenerateBindingRedirects"> |
|
|
|
|
|
|
|
@ -4,9 +4,6 @@ |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile> |
|
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)key.snk</AssemblyOriginatorKeyFile> |
|
|
|
<SignAssembly>true</SignAssembly> |
|
|
|
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> |
|
|
|
<IncludeSource>true</IncludeSource> |
|
|
|
<IncludeSymbols>true</IncludeSymbols> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
@ -14,13 +14,11 @@ using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Internal |
|
|
|
namespace OpenIddict.Mvc |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Represents an ASP.NET Core MVC model binder that is able to bind
|
|
|
|
/// <see cref="OpenIdConnectRequest"/> and <see cref="OpenIdConnectResponse"/> instances.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictMvcBinder : IModelBinder |
|
|
|
{ |
|
|
|
@ -29,8 +27,6 @@ namespace OpenIddict.Mvc.Internal |
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of the <see cref="OpenIddictMvcBinder"/> class.
|
|
|
|
/// <see cref="OpenIdConnectRequest"/> and <see cref="OpenIdConnectResponse"/> instances.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public OpenIddictMvcBinder([NotNull] IOptionsMonitor<OpenIddictMvcOptions> options) |
|
|
|
=> _options = options; |
|
|
|
@ -10,13 +10,11 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding; |
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Internal |
|
|
|
namespace OpenIddict.Mvc |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Represents an ASP.NET Core MVC model binder provider that is able to provide instances
|
|
|
|
/// of <see cref="OpenIddictMvcBinder"/> for the OpenID Connect server primitives.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictMvcBinderProvider : IModelBinderProvider |
|
|
|
{ |
|
|
|
@ -12,12 +12,10 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; |
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Internal |
|
|
|
namespace OpenIddict.Mvc |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Contains the methods required to ensure that the OpenIddict MVC configuration is valid.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictMvcConfiguration : IConfigureOptions<MvcOptions> |
|
|
|
{ |
|
|
|
@ -9,7 +9,7 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Mvc.Internal; |
|
|
|
using OpenIddict.Mvc; |
|
|
|
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection |
|
|
|
{ |
|
|
|
|
|
|
|
@ -16,12 +16,10 @@ using Microsoft.Extensions.Options; |
|
|
|
using Microsoft.IdentityModel.Tokens; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Contains the methods required to ensure that the OpenIddict server configuration is valid.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictServerConfiguration : IConfigureOptions<AuthenticationOptions>, |
|
|
|
IPostConfigureOptions<AuthenticationOptions>, |
|
|
|
@ -14,7 +14,6 @@ using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using OpenIddict.Server; |
|
|
|
using OpenIddict.Server.Internal; |
|
|
|
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection |
|
|
|
{ |
|
|
|
|
|
|
|
@ -11,19 +11,15 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictServerHandler : OpenIdConnectServerHandler |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of the <see cref="OpenIddictServerHandler"/> class.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public OpenIddictServerHandler( |
|
|
|
[NotNull] IOptionsMonitor<OpenIddictServerOptions> options, |
|
|
|
@ -10,7 +10,6 @@ using System.Security.Cryptography; |
|
|
|
using AspNet.Security.OpenIdConnect.Server; |
|
|
|
using Microsoft.Extensions.Caching.Distributed; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using OpenIddict.Server.Internal; |
|
|
|
|
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
|
|
|
|
@ -22,14 +22,12 @@ using Newtonsoft.Json.Bson; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override async Task ExtractAuthorizationRequest([NotNull] ExtractAuthorizationRequestContext context) |
|
|
|
{ |
|
|
|
@ -9,14 +9,12 @@ using AspNet.Security.OpenIdConnect.Primitives; |
|
|
|
using AspNet.Security.OpenIdConnect.Server; |
|
|
|
using JetBrains.Annotations; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override Task ExtractConfigurationRequest([NotNull] ExtractConfigurationRequestContext context) |
|
|
|
=> _eventDispatcher.DispatchAsync(new OpenIddictServerEvents.ExtractConfigurationRequest(context)); |
|
|
|
@ -16,14 +16,12 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override Task ExtractTokenRequest([NotNull] ExtractTokenRequestContext context) |
|
|
|
=> _eventDispatcher.DispatchAsync(new OpenIddictServerEvents.ExtractTokenRequest(context)); |
|
|
|
@ -19,14 +19,12 @@ using Microsoft.IdentityModel.Tokens; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
private async Task CreateAuthorizationAsync([NotNull] AuthenticationTicket ticket, |
|
|
|
[NotNull] OpenIddictServerOptions options, [NotNull] OpenIdConnectRequest request) |
|
|
|
@ -12,14 +12,12 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override Task ExtractIntrospectionRequest([NotNull] ExtractIntrospectionRequestContext context) |
|
|
|
=> _eventDispatcher.DispatchAsync(new OpenIddictServerEvents.ExtractIntrospectionRequest(context)); |
|
|
|
@ -14,14 +14,12 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override Task ExtractRevocationRequest([NotNull] ExtractRevocationRequestContext context) |
|
|
|
=> _eventDispatcher.DispatchAsync(new OpenIddictServerEvents.ExtractRevocationRequest(context)); |
|
|
|
@ -10,14 +10,12 @@ using AspNet.Security.OpenIdConnect.Primitives; |
|
|
|
using AspNet.Security.OpenIdConnect.Server; |
|
|
|
using JetBrains.Annotations; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override async Task DeserializeAccessToken([NotNull] DeserializeAccessTokenContext context) |
|
|
|
{ |
|
|
|
@ -19,14 +19,12 @@ using Newtonsoft.Json.Bson; |
|
|
|
using Newtonsoft.Json.Linq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override async Task ExtractLogoutRequest([NotNull] ExtractLogoutRequestContext context) |
|
|
|
{ |
|
|
|
@ -8,14 +8,12 @@ using System.Threading.Tasks; |
|
|
|
using AspNet.Security.OpenIdConnect.Server; |
|
|
|
using JetBrains.Annotations; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
public override Task ExtractUserinfoRequest([NotNull] ExtractUserinfoRequestContext context) |
|
|
|
{ |
|
|
|
@ -17,14 +17,12 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal |
|
|
|
namespace OpenIddict.Server |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract, validate and handle OpenID Connect requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
internal sealed partial class OpenIddictServerProvider : OpenIdConnectServerProvider |
|
|
|
{ |
|
|
|
private readonly ILogger _logger; |
|
|
|
private readonly IOpenIddictServerEventDispatcher _eventDispatcher; |
|
|
|
@ -0,0 +1,9 @@ |
|
|
|
/* |
|
|
|
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
* See https://github.com/openiddict/openiddict-core for more information concerning
|
|
|
|
* the license and the contributors participating to this project. |
|
|
|
*/ |
|
|
|
|
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
[assembly: InternalsVisibleTo("OpenIddict.Server.Tests, PublicKey=0024000004800000140200000602000000240000525341310010000001000100613f2880fc9f71b5e8f968801c1a4923e1df760bd3f9d2d752f83c01cabc4853e7f32bba18e9e88ca1285d96655008148d60c43d28d82a292c6bf0c8a761fd5d345e45ec1c044b6eeca140593779e6c9e8b59eb1b1cc905dc81e559a9fdf24c77d333c53cc8c7f2d46a6df3a74c426e4afc97bab4117a87a882552c8f41e9f4757bb40a1255cf720f85ce50bac763a6104b03d6927ef05f5dcc316450eda528eae7f003af8c6463daa9505fae121d0c8294eb927995a4dd96b9397c16a479c865322af27c0f1b493a5dc03305bd5d46ac376de620cb050b40f9fb1cbb0a2004242ad30aff30e203fb68a104eed90d80def2e04f1c73e01937d9f1359108904d13d5226ac717880f51070066252ceb0b0acdb6705fb76515f3cebb2fc497572ab3c66718fbdb1306f39125a6cb6f40006db495a21a61b5273ddcbc83e983a2e59b04ebbcde41aad46ff4292080b1ede89878ac95b26d68227cd6077994b397255e91b09d25de64f0f7cf58cd3f96460561056eaf48ff1fb1d9f6faa3741bc756b930d761dfe0bde2d8d4c79351888688dd2d0c2939b8e0619a3f668816fbbab070c3139e3f3a5b2961f7d99f2af95fde9c52958644e575a3d0f2a1de8d5fef0b8c9766b415e7566eaba2ad0c775089c1f5148008509700fcebdd001f1b36a1db83be5b2b66c18342d3230e5f995f1283335dbee7388aa3584206fba97112775af")] |
|
|
|
@ -11,12 +11,10 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.AspNetCore.DataProtection; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal |
|
|
|
namespace OpenIddict.Validation |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Contains the methods required to ensure that the OpenIddict validation configuration is valid.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictValidationConfiguration : IConfigureOptions<AuthenticationOptions>, |
|
|
|
IPostConfigureOptions<AuthenticationOptions>, |
|
|
|
@ -26,8 +24,6 @@ namespace OpenIddict.Validation.Internal |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of the <see cref="OpenIddictValidationConfiguration"/> class.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public OpenIddictValidationConfiguration([NotNull] IDataProtectionProvider dataProtectionProvider) |
|
|
|
=> _dataProtectionProvider = dataProtectionProvider; |
|
|
|
@ -11,7 +11,6 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Validation; |
|
|
|
using OpenIddict.Validation.Internal; |
|
|
|
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection |
|
|
|
{ |
|
|
|
|
|
|
|
@ -11,19 +11,15 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal |
|
|
|
namespace OpenIddict.Validation |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract and validate tokens from HTTP requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public class OpenIddictValidationHandler : OAuthValidationHandler |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of the <see cref="OpenIddictValidationHandler"/> class.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public OpenIddictValidationHandler( |
|
|
|
[NotNull] IOptionsMonitor<OpenIddictValidationOptions> options, |
|
|
|
@ -8,7 +8,7 @@ using System; |
|
|
|
using JetBrains.Annotations; |
|
|
|
using Microsoft.AspNetCore.Authentication; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal |
|
|
|
namespace OpenIddict.Validation |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Defines a set of commonly used helpers.
|
|
|
|
@ -5,7 +5,6 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
using AspNet.Security.OAuth.Validation; |
|
|
|
using OpenIddict.Validation.Internal; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation |
|
|
|
{ |
|
|
|
|
|
|
|
@ -13,14 +13,14 @@ using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal |
|
|
|
namespace OpenIddict.Validation |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Provides the logic necessary to extract and validate tokens from HTTP requests.
|
|
|
|
/// Note: this API supports the OpenIddict infrastructure and is not intended to be used
|
|
|
|
/// directly from your code. This API may change or be removed in future minor releases.
|
|
|
|
/// </summary>
|
|
|
|
public sealed class OpenIddictValidationProvider : OAuthValidationEvents |
|
|
|
internal sealed class OpenIddictValidationProvider : OAuthValidationEvents |
|
|
|
{ |
|
|
|
private readonly IOpenIddictValidationEventDispatcher _eventDispatcher; |
|
|
|
|
|
|
|
@ -0,0 +1,9 @@ |
|
|
|
/* |
|
|
|
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
* See https://github.com/openiddict/openiddict-core for more information concerning
|
|
|
|
* the license and the contributors participating to this project. |
|
|
|
*/ |
|
|
|
|
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
[assembly: InternalsVisibleTo("OpenIddict.Validation.Tests, PublicKey=0024000004800000140200000602000000240000525341310010000001000100613f2880fc9f71b5e8f968801c1a4923e1df760bd3f9d2d752f83c01cabc4853e7f32bba18e9e88ca1285d96655008148d60c43d28d82a292c6bf0c8a761fd5d345e45ec1c044b6eeca140593779e6c9e8b59eb1b1cc905dc81e559a9fdf24c77d333c53cc8c7f2d46a6df3a74c426e4afc97bab4117a87a882552c8f41e9f4757bb40a1255cf720f85ce50bac763a6104b03d6927ef05f5dcc316450eda528eae7f003af8c6463daa9505fae121d0c8294eb927995a4dd96b9397c16a479c865322af27c0f1b493a5dc03305bd5d46ac376de620cb050b40f9fb1cbb0a2004242ad30aff30e203fb68a104eed90d80def2e04f1c73e01937d9f1359108904d13d5226ac717880f51070066252ceb0b0acdb6705fb76515f3cebb2fc497572ab3c66718fbdb1306f39125a6cb6f40006db495a21a61b5273ddcbc83e983a2e59b04ebbcde41aad46ff4292080b1ede89878ac95b26d68227cd6077994b397255e91b09d25de64f0f7cf58cd3f96460561056eaf48ff1fb1d9f6faa3741bc756b930d761dfe0bde2d8d4c79351888688dd2d0c2939b8e0619a3f668816fbbab070c3139e3f3a5b2961f7d99f2af95fde9c52958644e575a3d0f2a1de8d5fef0b8c9766b415e7566eaba2ad0c775089c1f5148008509700fcebdd001f1b36a1db83be5b2b66c18342d3230e5f995f1283335dbee7388aa3584206fba97112775af")] |
|
|
|
@ -5,6 +5,8 @@ |
|
|
|
<PropertyGroup> |
|
|
|
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks> |
|
|
|
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks> |
|
|
|
<SignAssembly>false</SignAssembly> |
|
|
|
<PublicSign>false</PublicSign> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
|
|
@ -12,7 +12,6 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; |
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Mvc.Internal; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Tests |
|
|
|
@ -8,7 +8,6 @@ using System; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Mvc.Internal; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Tests |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; |
|
|
|
using Moq; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Internal.Tests |
|
|
|
namespace OpenIddict.Mvc.Tests |
|
|
|
{ |
|
|
|
public class OpenIddictMvcModelBinderProviderTests |
|
|
|
{ |
|
|
|
@ -19,7 +19,7 @@ using Microsoft.Extensions.Options; |
|
|
|
using Moq; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Mvc.Internal.Tests |
|
|
|
namespace OpenIddict.Mvc.Tests |
|
|
|
{ |
|
|
|
public class OpenIddictMvcModelBinderTests |
|
|
|
{ |
|
|
|
@ -23,7 +23,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public class OpenIddictServerConfigurationTests |
|
|
|
{ |
|
|
|
@ -13,7 +13,6 @@ using Microsoft.Extensions.Caching.Memory; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Server.Internal; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ using Newtonsoft.Json.Bson; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -12,7 +12,7 @@ using Newtonsoft.Json.Linq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -18,7 +18,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -16,7 +16,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -19,7 +19,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -18,7 +18,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -18,7 +18,7 @@ using Moq; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -10,7 +10,7 @@ using AspNet.Security.OpenIdConnect.Primitives; |
|
|
|
using OpenIddict.Abstractions; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -33,7 +33,7 @@ using OpenIddict.Abstractions; |
|
|
|
using OpenIddict.Core; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Server.Internal.Tests |
|
|
|
namespace OpenIddict.Server.Tests |
|
|
|
{ |
|
|
|
public partial class OpenIddictServerProviderTests |
|
|
|
{ |
|
|
|
@ -19,7 +19,7 @@ using Microsoft.Extensions.Options; |
|
|
|
using Moq; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal.Tests |
|
|
|
namespace OpenIddict.Validation.Tests |
|
|
|
{ |
|
|
|
public class OpenIddictValidationConfigurationTests |
|
|
|
{ |
|
|
|
@ -11,7 +11,6 @@ using Microsoft.AspNetCore.Authentication; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using OpenIddict.Validation.Internal; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Tests |
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ using OpenIddict.Abstractions; |
|
|
|
using OpenIddict.Core; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace OpenIddict.Validation.Internal.Tests |
|
|
|
namespace OpenIddict.Validation.Tests |
|
|
|
{ |
|
|
|
public class OpenIddictValidationProviderTests |
|
|
|
{ |