c0debrain / socialauth

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

Not getting access to gmail profile after logging in. Profile is returned as null. #379

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Created client ID:
JAVASCRIPT ORIGINS---> http://localhost:8080
REDIRECT URIS--------> http://localhost:8080/socialauthdemo/socialAuth

2.Run the socialauthdemo as provided in code.google.com on local 
machine(localhost:8080)

3.select gmail and login to account.

What is the expected output? What do you see instead?

Expecting to see my profile and contact list.

What version of the product are you using? On what operating system?

Using socialauth-2.3(SDK) on windows 7 with GGTS IDE

Please provide any additional information below.
ERROR:
[http-bio-8090-exec-9] ERROR errors.GrailsExceptionResolver  - 
NullPointerException occurred when processing request: [GET] 
/refer247/socialAuthSuccess
Cannot get property 'email' on null object. Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error 
evaluating expression [profile.email] on line [57]: Cannot get property 'email' 
on null object
    at E__STUDY_YBN_ReferWork_refer247_grails_app_views_socialAuthSuccess_index_gsp$_run_closure2.doCall(index.gsp:57)
    at E__STUDY_YBN_ReferWork_refer247_grails_app_views_socialAuthSuccess_index_gsp.run(index.gsp:128)
    at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
    at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
    at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Cannot get property 'email' on null 
object
    at E__STUDY_YBN_ReferWork_refer247_grails_app_views_socialAuthSuccess_index_gsp$_run_closure2_closure4.doCall(index.gsp:57)

Original issue reported on code.google.com by naga...@ybn.co.in on 8 Jan 2015 at 6:33

GoogleCodeExporter commented 9 years ago
You need to use domain to run the demo. 
http://localhost:8080 will not work.

Please have a look into the following URL
https://github.com/3pillarlabs/socialauth/wiki/How-to-run-application-with-Local
host-on-windows

Original comment by tarunnag...@gmail.com on 16 Jan 2015 at 12:34