#NEWLINE# def check_auth_expiry( self , auth_ref , margin = None ) : #NEWLINE# #INDENT# if ( not utils . is_token_valid ( margin , margin ) ) : #NEWLINE# #INDENT# msg = _ ( 'The authentication token issued by the Identity service has expired.' ) #NEWLINE# LOG . warning ( 'The authentication token issued by the Identity service appears to have expired before it was issued. This may indicate a problem with either your server or client configuration.' ) #NEWLINE# raise exceptions . KeystoneAuthException ( msg ) #NEWLINE# #UNINDENT# return True