#NEWLINE# def __call__( self , r ) : #NEWLINE# #INDENT# if ( self . security_context [ 'auth_token_type' ] . lower ( ) == 'bearer' ) : #NEWLINE# #INDENT# auth_header = ( ( self . security_context [ 'auth_token_type' ] + ' ' ) + self . security_context [ 'auth_token' ] ) #NEWLINE# r . headers [ b'Authorization' ] = auth_header . encode ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NotImplementedError ( 'Token types other than bearer are not yet supported' ) #NEWLINE# #UNINDENT# return r