def auth_logout(redirect_url=None):
 redirect_url = (redirect_url or request.args.get('redirect_url') or web_url_for('goodbye', _absolute=True))
 osf_logout()
 if ('reauth' in request.args):
  cas_endpoint = cas.get_login_url(redirect_url)
 else:
  cas_endpoint = cas.get_logout_url(redirect_url)
 resp = redirect(cas_endpoint)
 resp.delete_cookie(settings.COOKIE_NAME, domain=settings.OSF_COOKIE_DOMAIN)
 return resp

def auth_logout ( redirect_url = None ) : redirect_url = ( redirect_url or request . args . get ( 'redirect_url' ) or web_url_for ( 'goodbye' , _absolute = True ) ) osf_logout ( ) if ( 'reauth' in request . args ) : cas_endpoint = cas . get_login_url ( redirect_url ) else : cas_endpoint = cas . get_logout_url ( redirect_url ) resp = redirect ( cas_endpoint ) resp . delete_cookie ( settings . COOKIE_NAME , domain = settings . OSF_COOKIE_DOMAIN ) return resp
log out .