Browse Source

Fix the device authorization endpoint to only accept POST requests and support client_secret_basic

pull/997/head
Kévin Chalet 6 years ago
parent
commit
1280fca285
  1. 3
      src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Device.cs
  2. 2
      src/OpenIddict.Server.Owin/OpenIddictServerOwinHandler.cs
  3. 3
      src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Device.cs

3
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Device.cs

@ -18,7 +18,8 @@ namespace OpenIddict.Server.AspNetCore
/*
* Device request extraction:
*/
ExtractGetOrPostRequest<ExtractDeviceRequestContext>.Descriptor,
ExtractPostRequest<ExtractDeviceRequestContext>.Descriptor,
ExtractBasicAuthenticationCredentials<ExtractDeviceRequestContext>.Descriptor,
/*
* Device response processing:

2
src/OpenIddict.Server.Owin/OpenIddictServerOwinHandler.cs

@ -30,7 +30,7 @@ namespace OpenIddict.Server.Owin
/// <summary>
/// Creates a new instance of the <see cref="OpenIddictServerOwinHandler"/> class.
/// </summary>
/// <param name="dispatcher">The OpenIddict server provider used by this instance.</param>
/// <param name="dispatcher">The OpenIddict server dispatcher used by this instance.</param>
/// <param name="factory">The OpenIddict server factory used by this instance.</param>
public OpenIddictServerOwinHandler(
[NotNull] IOpenIddictServerDispatcher dispatcher,

3
src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Device.cs

@ -18,7 +18,8 @@ namespace OpenIddict.Server.Owin
/*
* Device request extraction:
*/
ExtractGetOrPostRequest<ExtractDeviceRequestContext>.Descriptor,
ExtractPostRequest<ExtractDeviceRequestContext>.Descriptor,
ExtractBasicAuthenticationCredentials<ExtractDeviceRequestContext>.Descriptor,
/*
* Device response processing:

Loading…
Cancel
Save