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
Post a Comment