Google OAuth Token Force Expiration Not Happening -


i forcibly trying expire google api oauth access token contacts api.

here general outline of test:

get code:

auth_uri = flow.step1_get_authorize_url()     redirect(auth_uri) code here 

exchange access token:

code = request.get.get('code') credentials = flow.step2_exchange(code) store_for_reuse(key, credentials) store_for_refresh(key, credentials) 

get new access token:

credentials_original = get_for_reuse(key) credentials_for_refresh = get_for_refresh(key) credentials_for_refresh.refresh(http) 

now, can verify 2 credentials object have different access token values

credentials_original.access_token != credentials_for_refresh.acesss_token 

surprisingly, can still make successful api calls original access token. shouldn't original 1 expire when new access token issued?

getting new token not expire existing tokens. tokens valid designated lifespan unless explicitly revoked.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -