emonarafat / socialauth-net

Automatically exported from code.google.com/p/socialauth-net
0 stars 0 forks source link

After the first login, not redirected to returnUrl(ARGUMENT PASSED IN LOGIN METHOD) #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log On to any provider by clicking corresponding button, pass a url string 
in Login method to redirect

2. but after allowing access in provider page it redirected to defaulturl 
specified in forms authentication tag in web.config

3. Go to desired URL (that passed as returnurl in login method) by manually 
type in browser address bar

4. When you click the button correspond to any provider that is already logged 
in it redirected to desired url page that passed in Login method

What is the expected output? What do you see instead?
  At the first login itself it  must redirect to specified url(argument passed in Login() method)

   But at first time it redirect to default URL as if the return URl is not passed to Login() method

  And quite sure about there was not returnurl in query string
What version of the product are you using? On what operating system?

Please provide any additional information below.
   I followed the Option 3 in Ingeration Guide. the line no. 293 in wiki source of Ingeration Guide wiki page is quite confusing. Please improve the the quality of wiki pages

Original issue reported on code.google.com by cvacanga...@gmail.com on 11 Apr 2012 at 8:24

GoogleCodeExporter commented 9 years ago
Sorry for the mistake in title. It should be   "At the first login, not 
redirected to returnUrl(ARGUMENT PASSED IN LOGIN METHOD)"

And the version of product is SocialAuth.net 2.2

Original comment by cvacanga...@gmail.com on 11 Apr 2012 at 8:28

GoogleCodeExporter commented 9 years ago
Hi,

When using SocialAuth.NET with Winfows FormsAuthentication, we are not making 
any behavior override and let FormsAuthentication do its bit (Which by default 
redirects user to the DefaultURL as specified in forms authentication tag in 
web.config). It is only when Option-1 or Option-2 is used that we have written 
customized authentication framework.

If you refer http://code.google.com/p/socialauth-net/wiki/API_Reference Login 
Method's RedirectURL Description, it has been mentioned "Also note, that this 
option does not applies to FormsAuthentication. Irrespective of what is 
specified as value, default behavior of FormsAuthentication will override this 
value.". 

However this was initial behavior as we wanted FormsAuthentication to work. 
We've received similar requests earlier and are thinking towards overriding 
FormsAuthentication a bit by making use of redirectUrl.

Appreciated, if you could please reply with confusing line so that we can 
improve it.

regards,
Deepak

Original comment by daggar...@brickred.com on 22 Apr 2012 at 5:56

GoogleCodeExporter commented 9 years ago
Closing since no response received

Original comment by tsg.bric...@gmail.com on 4 May 2012 at 2:50