@collect_auth
def auth_login(auth):
 campaign = request.args.get('campaign')
 next_url = request.args.get('next')
 data = login_and_register_handler(auth, login=True, campaign=campaign, next_url=next_url)
 if (data['status_code'] == http.FOUND):
  return redirect(data['next_url'])

@ collect_auth def auth_login ( auth ) : campaign = request . args . get ( 'campaign' ) next_url = request . args . get ( 'next' ) data = login_and_register_handler ( auth , login = True , campaign = campaign , next_url = next_url ) if ( data [ 'status_code' ] == http . FOUND ) : return redirect ( data [ 'next_url' ] )
view for osf login .