cdanielm58 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Not able to get value of access_token , using QueryString !! #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not able to fetch  access_token value in QueryString , ASP.Net ( C# )

Google is sending the authorization token ,but I am not able to capture the 
token value by using a) QueryString (getting null) b) using spiting string (not 
getting full url ) 

RedirectUrl is : http://www.onfrnz.com/auth.aspx

http://www.onfrnz.com/auth.aspx#state=/profile&access_token=ya29d.AHES6ZSl_y1IIi
JS-jTgX48UOKsds8vapvr5SMhwfsa4XAu0gO9dYY&token_type=Bearer&expires_in=3600

Please help me on this , already I have wasted 7 days . I don't want to use any 
DLL . Thanks in advance .

Regards..
Biswanath

Original issue reported on code.google.com by biswanat...@gmail.com on 22 Jul 2012 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,
Sorry if I have got the wrong end of this issue, but htis does not seem to be 
anything related to the code of this project.  
If I am wrong please detail which code with in this project you think is not 
working correctly.

If you have not already you could try request.Url should have the full 
requesting url. If this is not the case, I would suggest asking in a different 
forum. Either a microsoft Asp.Net forum or www.stackoverflow.com 

Again if I have got the wrong end of this please reopen and correct me.

Thanks.

Original comment by davidwat...@google.com on 28 Jul 2012 at 4:26

GoogleCodeExporter commented 9 years ago
I have fixed the issue using java script . As # is included in the response 
string so not able to get the value in normal way using Query String . Using 
java script , reading the full path . Now it's working properly !!

Original comment by biswanat...@gmail.com on 29 Jul 2012 at 1:47

GoogleCodeExporter commented 9 years ago
i am facing the same problem . how did you use Java script to solve it. Can you 
please specify.

Original comment by ad...@gizmosyssolutions.com on 4 Sep 2012 at 1:38