<s> from __future__ import absolute_import , print_function <EOL> from django . http import HttpResponse <EOL> from sentry . auth import Provider , AuthView <EOL> class AskEmail ( AuthView ) : <EOL> def dispatch ( self , request , helper ) : <EOL> if '<STR_LIT:email>' in request . POST : <EOL> helper . bind_state ( '<STR_LIT:email>' , request . POST [ '<STR_LIT:email>' ] ) <EOL> return helper . next_step ( ) <EOL> return HttpResponse ( DummyProvider . TEMPLATE ) <EOL> class DummyProvider ( Provider ) : <EOL> TEMPLATE = '<STR_LIT>' <EOL> def get_auth_pipeline ( self ) : <EOL> return [ AskEmail ( ) ] <EOL> def build_identity ( self , state ) : <EOL> return { <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT:id>' : state [ '<STR_LIT:email>' ] , <EOL> '<STR_LIT:email>' : state [ '<STR_LIT:email>' ] , <EOL> } <EOL> def refresh_identity ( self , auth_identity ) : <EOL> pass <EOL> def build_config ( self , state ) : <EOL> return { } </s>
