#NEWLINE# def find_token_type( self , request ) : #NEWLINE# #INDENT# 'Token type identification.\n\n        RFC 6749 does not provide a method for easily differentiating between\n        different token types during protected resource access. We estimate\n        the most likely token type (if any) by asking each known token type\n        to give an estimation based on the request.\n        ' #NEWLINE# estimates = sorted ( ( ( t . estimate_type ( request ) , t ) for ( n , t ) in self . tokens . items ( ) ) ) #NEWLINE# return ( estimates [ 0 ] [ 1 ] if len ( estimates ) else None )