oauth 2.0 - How to recover from a Spring Social ExpiredAuthorizationException -


i trying implement google oauth2 spring social , spring-social-google. initial authentication works fine. after time authentication expires , hit by

org.springframework.social.expiredauthorizationexception: authorization has expired. 

how can recover exception? possible somehow refresh authorization?

try send additional access_type=offline paramter during authorization. may looks this:

<form ...>     .....     <input type="hidden" name="access_type" value="offline"/> </form> 

normally in case authorization refreshed automatically you. see this entry more details.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -