diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-31 22:49:16 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-31 22:49:16 -0700 |
commit | 8b55ee651212f5558e57ff502bb2b1eda3748dbf (patch) | |
tree | a0cb30edbe135bd1ce91ca498723d523078d3784 /samples/DotNetOpenAuth.ApplicationBlock/Provider/AuthenticationRequestExtensions.cs | |
parent | e7cb9e9c127da70ec1a54969ae7770c1b7ce43c3 (diff) | |
download | DotNetOpenAuth-8b55ee651212f5558e57ff502bb2b1eda3748dbf.zip DotNetOpenAuth-8b55ee651212f5558e57ff502bb2b1eda3748dbf.tar.gz DotNetOpenAuth-8b55ee651212f5558e57ff502bb2b1eda3748dbf.tar.bz2 |
Promoted PPID identifier provider from the application block to the core library.
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; } |