@app.route('/account/<subscription_id>/providers/<provider_namespace>/register', methods=['POST'])
@auth.require_login
def provider_register_post(subscription_id, provider_namespace):
 creds = _get_credentials()
 models.register_provider(subscription_id, creds, provider_namespace)
 return redirect(url_for('subscription_view', subscription_id=subscription_id))

@ app . route ( '/account/<subscription_id>/providers/<provider_namespace>/register' , methods = [ 'POST' ] ) @ auth . require_login def provider_register_post ( subscription_id , provider_namespace ) : creds = _get_credentials ( ) models . register_provider ( subscription_id , creds , provider_namespace ) return redirect ( url_for ( 'subscription_view' , subscription_id = subscription_id ) )
register provider request .