Skip to content

store default signing profile id (not working)#1224

Open
azernik wants to merge 1 commit into
squeaknode:masterfrom
azernik:1146_add_cookie_for_default_signing_profile
Open

store default signing profile id (not working)#1224
azernik wants to merge 1 commit into
squeaknode:masterfrom
azernik:1146_add_cookie_for_default_signing_profile

Conversation

@azernik

@azernik azernik commented Sep 8, 2021

Copy link
Copy Markdown
Contributor

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

logger.info("Getting hello route.")
return "Hello, World!"

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

Copy link
Copy Markdown
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
Copy Markdown
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