Skip to content

Commit

Permalink
SR: Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lievrouw committed Mar 6, 2021
1 parent 8e4206e commit 81d9e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ internal class HttpMessageSigningVerificationBuilder : IHttpMessageSigningVerifi
return UseClaimsPrincipalFactory(provider => claimsPrincipalFactory);
}

public IHttpMessageSigningVerificationBuilder UseClaimsPrincipalFactory(Func<IServiceProvider, IClaimsPrincipalFactory> claimsPrincipalFactoryFactory) {
if (claimsPrincipalFactoryFactory == null) throw new ArgumentNullException(nameof(claimsPrincipalFactoryFactory));
public IHttpMessageSigningVerificationBuilder UseClaimsPrincipalFactory(Func<IServiceProvider, IClaimsPrincipalFactory> claimsPrincipalFactory) {
if (claimsPrincipalFactory == null) throw new ArgumentNullException(nameof(claimsPrincipalFactory));

Services.AddSingleton(claimsPrincipalFactoryFactory);
Services.AddSingleton(claimsPrincipalFactory);

return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public interface IHttpMessageSigningVerificationBuilder {
IHttpMessageSigningVerificationBuilder UseClaimsPrincipalFactory(IClaimsPrincipalFactory claimsPrincipalFactory);

/// <summary>Configures HTTP message signature verification to use the specified <see cref="IClaimsPrincipalFactory"/>.</summary>
/// <param name="claimsPrincipalFactoryFactory">The factory that creates the <see cref="IClaimsPrincipalFactory" /> that is to be used.</param>
/// <param name="claimsPrincipalFactory">The factory that creates the <see cref="IClaimsPrincipalFactory" /> that is to be used.</param>
/// <returns>The <see cref="IHttpMessageSigningVerificationBuilder" /> that can be used to continue configuring the verification settings.</returns>
IHttpMessageSigningVerificationBuilder UseClaimsPrincipalFactory(Func<IServiceProvider, IClaimsPrincipalFactory> claimsPrincipalFactoryFactory);
IHttpMessageSigningVerificationBuilder UseClaimsPrincipalFactory(Func<IServiceProvider, IClaimsPrincipalFactory> claimsPrincipalFactory);
}
}

0 comments on commit 81d9e14

Please sign in to comment.