summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OpenId.RelyingParty
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 16:36:51 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 16:36:51 -0800
commita57b51806ceebaa64db730809d6d7fd07c5b42ce (patch)
treeabbe0666f8ee621b72c339d341b45b86e1346cb5 /src/DotNetOpenAuth.OpenId.RelyingParty
parent475b47ab8eaa23e064763b05539fa750accebfdc (diff)
downloadDotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.zip
DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.gz
DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.bz2
Adds OpenID RP to WebAPI sample so it's a real login.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.RelyingParty')
-rw-r--r--src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/OpenIdRelyingParty.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/OpenIdRelyingParty.cs b/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/OpenIdRelyingParty.cs
index 3a3b430..6a1ef83 100644
--- a/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/OpenIdRelyingParty.cs
+++ b/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/OpenIdRelyingParty.cs
@@ -93,7 +93,8 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
private Channel channel;
/// <summary>
- /// Initializes a new instance of the <see cref="OpenIdRelyingParty"/> class.
+ /// Initializes a new instance of the <see cref="OpenIdRelyingParty"/> class
+ /// such that it uses a memory store for things it must remember across logins.
/// </summary>
public OpenIdRelyingParty()
: this(OpenIdElement.Configuration.RelyingParty.ApplicationStore.CreateInstance(GetHttpApplicationStore(), null)) {
@@ -519,7 +520,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// <remarks>
/// Requires an <see cref="HttpContext.Current">HttpContext.Current</see> context.
/// </remarks>
- public Task<IAuthenticationResponse> GetResponseAsync(CancellationToken cancellationToken) {
+ public Task<IAuthenticationResponse> GetResponseAsync(CancellationToken cancellationToken = default(CancellationToken)) {
RequiresEx.ValidState(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired);
return this.GetResponseAsync(this.Channel.GetRequestFromContext(), cancellationToken);
}
@@ -532,7 +533,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// <returns>
/// The processed authentication response if there is any; <c>null</c> otherwise.
/// </returns>
- public async Task<IAuthenticationResponse> GetResponseAsync(HttpRequestBase httpRequestInfo, CancellationToken cancellationToken) {
+ public async Task<IAuthenticationResponse> GetResponseAsync(HttpRequestBase httpRequestInfo, CancellationToken cancellationToken = default(CancellationToken)) {
Requires.NotNull(httpRequestInfo, "httpRequestInfo");
try {
var message = await this.Channel.ReadFromRequestAsync(httpRequestInfo, cancellationToken);