diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-05-01 10:52:45 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-05-01 10:52:45 -0700 |
commit | a85cd1c7bb0a22ee08056a19ce60173e3ab8e0e0 (patch) | |
tree | fa034df45ee7bf98184e2c31e3b14aa3f1e106c6 /src | |
parent | d5ce85a1441fc9e315c96c6453f42c3f02dd4dbb (diff) | |
parent | 8e6ea95502ca34ef9ab9e071742a6d2e16c868ca (diff) | |
download | DotNetOpenAuth-a85cd1c7bb0a22ee08056a19ce60173e3ab8e0e0.zip DotNetOpenAuth-a85cd1c7bb0a22ee08056a19ce60173e3ab8e0e0.tar.gz DotNetOpenAuth-a85cd1c7bb0a22ee08056a19ce60173e3ab8e0e0.tar.bz2 |
Merge pull request #136 from dotnetjunky/v4.0
Append the provider value to the return url in VerifyAuthentication
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.AspNet/OpenAuthSecurityManager.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.AspNet/OpenAuthSecurityManager.cs b/src/DotNetOpenAuth.AspNet/OpenAuthSecurityManager.cs index 06ca161..ea2ba54 100644 --- a/src/DotNetOpenAuth.AspNet/OpenAuthSecurityManager.cs +++ b/src/DotNetOpenAuth.AspNet/OpenAuthSecurityManager.cs @@ -191,6 +191,10 @@ namespace DotNetOpenAuth.AspNet { uri = this.requestContext.Request.GetPublicFacingUrl(); } + // attach the provider parameter so that we know which provider initiated + // the login when user is redirected back to this page + uri = uri.AttachQueryStringParameter(ProviderQueryStringName, this.authenticationProvider.ProviderName); + AuthenticationResult result = oauth2Client.VerifyAuthentication(this.requestContext, uri); if (!result.IsSuccessful) { // if the result is a Failed result, creates a new Failed response which has providerName info. |