Open franzisk opened 8 years ago
Access your parameter map and try to get the value for "code" key and check if it's null. Your error says, that it is null. Otherwise you can access code value manuelly and create a connection like this:
AccessGrant token = manager.createAccessGrant(PROVIDER, code, REDIRECT_URL);
AuthProvider provider = manager.connect(token);
Provider is your used provider, code the the value you ask for, and redirect url, the url back to your webapp
or if manager is already initialized:
Map<String,String> map = new HashMap<String, String>();
map.put("code", code);
AuthProvider provider = manager.connect(map);
Meet the same problem. Is there anyone who solved it? Thanks
Hi there,
I am trying to recover user profile but after doing the call and getting the Manager (see below), when I try to get profile by getting the the provider with the manager I always get the exception:
Exception: org.brickred.socialauth.exception.SocialAuthException: Verification code is null
What is this "Verification code"?
When Facebook redirects back to my URL it comes with this: /home.jsf?code=AQC1B1a4QDhkfQVtzCmXarf_fR4ZKbCVczKJ1kdDdcegN8l37C8uJ7afKNKSDWbTd0kupObDVMmJznfBGGhhCntSblzdFlaphIGfBpSEpGAZhbLSbckjQ6EIuBEbaauOb2yHUyUisiCKAwpfdCYt-NBN990HpuSo0UHeeUcIy34TbT2Yy5H6-mKgc-LD9b0idDEEfCnty6qsU71uklLPKgq7n4FvZe00-pRY5wOz2Pr-TORdOh62HI7GbjabLvUopl46cv6S2sG4Jw-RZU26w1GC9t7LIIbNXVRfaiiBedFm_Anguvl-9TcZWBTVen-YDWrQfHos4Mq5RTIYh5DIz#=_
What should I do with this code?
Appreciate any help.
Thanks