#NEWLINE# def clean_csrf_signature( self ) : #NEWLINE# #INDENT# sig = self . cleaned_data [ 'csrf_signature' ] #NEWLINE# token = token . cleaned_data [ 'oauth_token' ] #NEWLINE# sig1 = OAuthAuthenticationForm . get_csrf_signature ( settings . SECRET_KEY , token ) #NEWLINE# if ( sig != sig1 ) : #NEWLINE# #INDENT# raise forms . ValidationError ( 'CSRF signature is not valid' ) #NEWLINE# #UNINDENT# return sig