diff options
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs b/samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs index a737d30..8af72aa 100644 --- a/samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs +++ b/samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs @@ -10,11 +10,10 @@ /// <param name="request">The incoming authentication request.</param> /// <param name="localIdentifier">The OP local identifier, before the anonymous hash is applied to it.</param> /// <param name="anonymousIdentifierProvider">The anonymous identifier provider.</param> - /// <param name="pairwiseUnique">if set to <c>true</c> the anonymous identifier will be unique to the requesting relying party's realm.</param> /// <remarks> /// The openid.claimed_id and openid.identity values are hashed. /// </remarks> - public static void ScrubPersonallyIdentifiableInformation(this IAuthenticationRequest request, Identifier localIdentifier, AnonymousIdentifierProviderBase anonymousIdentifierProvider, bool pairwiseUnique) { + public static void ScrubPersonallyIdentifiableInformation(this IAuthenticationRequest request, Identifier localIdentifier, IDirectedIdentityIdentifierProvider anonymousIdentifierProvider) { if (request == null) { throw new ArgumentNullException("request"); } @@ -30,7 +29,7 @@ // When generating the anonymous identifiers, the openid.identity and openid.claimed_id // will always end up with matching values. - var anonymousIdentifier = anonymousIdentifierProvider.GetAnonymousIdentifier(localIdentifier, pairwiseUnique ? request.Realm : null); + var anonymousIdentifier = anonymousIdentifierProvider.GetIdentifier(localIdentifier, request.Realm); request.ClaimedIdentifier = anonymousIdentifier; request.LocalIdentifier = anonymousIdentifier; } |