Hi Mindaugas,
I have encounter this issue before, from what i know there are 3 ways to handle this issue:
1. Update CAS to 5.3.x (Recommended), which will fix this issue
2. Update pac4j-oauth to latest version
- In your Maven (suppose you are using maven), add an entry to pom.xml similar to like:
<dependency>
pac4j-oauth
3.8.3
</dependency>
From my experience, it should be working ok, however still option 1 is the best fix.
3. Update Google2ProfileDefinition class directly (Can be done but not the best idea, would not recommend since the above would fix it nicely without manual fix)
See if the above helps you.
Cheers!
- Andy