fix admin path and rollback on exception. w/ jlantz and elizabeth
This commit is contained in:
parent
7cbff0cdf2
commit
0c4761ac20
|
@ -75,4 +75,4 @@ def authentication_callback(
|
|||
verify_token(request.args.get("token"), force_run=True)
|
||||
response = request.args["response"]
|
||||
SecretService.update_secret(f"{service}/{auth_method}", response, g.user.id, create_if_not_exists=True)
|
||||
return redirect(f"{current_app.config['SPIFFWORKFLOW_BACKEND_URL_FOR_FRONTEND']}/admin/configuration")
|
||||
return redirect(f"{current_app.config['SPIFFWORKFLOW_BACKEND_URL_FOR_FRONTEND']}/configuration")
|
||||
|
|
|
@ -40,6 +40,7 @@ class SecretService:
|
|||
try:
|
||||
db.session.commit()
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
raise ApiError(
|
||||
error_code="create_secret_error",
|
||||
message=(
|
||||
|
|
Loading…
Reference in New Issue