mbohun
9/22/2015 - 6:54 AM

pac4j-1.4.x to pac4j-1.7.x Google2Profile incompatible BUG

pac4j-1.4.x to pac4j-1.7.x Google2Profile incompatible BUG

pac4j-1.4.x:

2015-05-26 03:32:45,197 
DEBUG 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<Attribute map for Google2Profile#105600676538699036821:
{
   picture=https://lh4.googleusercontent.com/-LkKJRNzwc_U/AAAAAAAAAAI/AAAAAAAABQE/oocuizk5n0s/photo.jpg,
   email=martin.bohun@gmail.com,
   locale=en,
   link=https://plus.google.com/+MartinBohun,
   name=Martin Bohun,
   gender=MALE,
   family_name=Bohun,
   given_name=Martin,
   verified_email=true,
   access_token=ya29.fwHYjF9e6nH75OoxjZk_SqFfKW5h8YyaZBFggNxqACsvPINltEh0GTVSlgpdR8J0k__GqZ5iBavMaQ
}>

pac4j-1.7.x:

2015-09-22 06:39:37,223
DEBUG
[org.jasig.cas.support.pac4j.authentication.handler.support.ALAClientAuthenticationHandler] - 
<userProfile : 
   <Google2Profile> | id: 105600676538699036821 | attributes: 
      {
         image.url=https://lh4.googleusercontent.com/-LkKJRNzwc_U/AAAAAAAAAAI/AAAAAAAABQE/oocuizk5n0s/photo.jpg?sz=50,
         name.familyName=Bohun,
         gender=MALE,
         emails=[{"value":"martin.bohun@gmail.com","type":"account"}],
         language=en,
         name.givenName=Martin,
         displayName=Martin Bohun,
         access_token=ya29.9gG_EVUW4bbgOXfK5-zim50NFvYTBZPesI_03EYyUx7cXBYyBq7s83dodLP53lgOy4WO,
         url=https://plus.google.com/+MartinBohun
      } 
      | roles: [] | permissions: [] | isRemembered: false |>