Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store default signing profile id (not working) #1224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azernik
Copy link
Contributor

@azernik azernik commented Sep 8, 2021

Implemented storing default signing profile as cookie but getting a network error.

@@ -118,6 +119,14 @@ def hello_world():
logger.info("Getting hello route.")
return "Hello, World!"

@app.route("/store_default_signing_profile_id/<profile_id>/profile_id", methods=["POST"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why include the profile_id in the route?

@login_required
def store_default_signing_profile_id(profile_id):
logger.info(f"Storing default signing profile: {profile_id}")
resp = make_response(render_template(...))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need any template. Maybe use this: https://flask.palletsprojects.com/en/2.0.x/api/#flask.after_this_request

@yzernik yzernik linked an issue Sep 10, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cookie for default signing profile
2 participants