Browse Source

Backport the stores changes to OpenIddict 1.x

pull/2236/head
Kévin Chalet 8 years ago
parent
commit
28a67b7711
  1. 2
      src/OpenIddict.Abstractions/Stores/IOpenIddictTokenStore.cs
  2. 2
      src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
  3. 2
      src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs
  4. 2
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs
  5. 2
      src/OpenIddict.MongoDb/Stores/OpenIddictTokenStore.cs

2
src/OpenIddict.Abstractions/Stores/IOpenIddictTokenStore.cs

@ -456,7 +456,7 @@ namespace OpenIddict.Abstractions
/// <returns> /// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation. /// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns> /// </returns>
Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken); Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken);
/// <summary> /// <summary>
/// Updates an existing token. /// Updates an existing token.

2
src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs

@ -1024,7 +1024,7 @@ namespace OpenIddict.Core
await Store.SetReferenceIdAsync(token, descriptor.ReferenceId, cancellationToken); await Store.SetReferenceIdAsync(token, descriptor.ReferenceId, cancellationToken);
await Store.SetStatusAsync(token, descriptor.Status, cancellationToken); await Store.SetStatusAsync(token, descriptor.Status, cancellationToken);
await Store.SetSubjectAsync(token, descriptor.Subject, cancellationToken); await Store.SetSubjectAsync(token, descriptor.Subject, cancellationToken);
await Store.SetTokenTypeAsync(token, descriptor.Type, cancellationToken); await Store.SetTypeAsync(token, descriptor.Type, cancellationToken);
} }
/// <summary> /// <summary>

2
src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs

@ -1154,7 +1154,7 @@ namespace OpenIddict.EntityFramework
/// <returns> /// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation. /// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns> /// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken) public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{ {
if (token == null) if (token == null)
{ {

2
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs

@ -1192,7 +1192,7 @@ namespace OpenIddict.EntityFrameworkCore
/// <returns> /// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation. /// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns> /// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken) public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{ {
if (token == null) if (token == null)
{ {

2
src/OpenIddict.MongoDb/Stores/OpenIddictTokenStore.cs

@ -951,7 +951,7 @@ namespace OpenIddict.MongoDb
/// <returns> /// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation. /// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns> /// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken) public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{ {
if (token == null) if (token == null)
{ {

Loading…
Cancel
Save