flask_demo: add guard.policy/guard.protect decorator examples + expand docs - #207
Open
AaryanInzalkar wants to merge 1 commit into
Open
flask_demo: add guard.policy/guard.protect decorator examples + expand docs#207AaryanInzalkar wants to merge 1 commit into
AaryanInzalkar wants to merge 1 commit into
Conversation
…amework-demo/flask_demo
Contributor
Author
|
@Wahid7852 @0-Shimanshu i have suggested a few changes as I was asked please check |
Contributor
Author
|
@Wahid7852 @0-Shimanshu Heyy could you pls check |
Collaborator
|
wheres the issue about it :D |
Contributor
Author
|
@Wahid7852 #14 is the related issue regarding this but now it has disappeared into thin air 😭😭 I don't have anything else to work on man, searching for an internship rn |
Contributor
Author
|
@Wahid7852 Brodda just laughed at me :< atleast reply |
Contributor
Author
|
@Wahid7852 Brodda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds decorator-based guard integration examples to flask_demo (
@guard.policy(),@guard.protect(),@guard.hooks.on_event) and expands documentation with curlexamples, an
advCLI section, and real verification commands.Why
The merged flask_demo (#187) only used
configure_routes()for guard integrationand never demonstrated the decorator-based API. In the fastapi_demo PR, the
maintainer explicitly requested
@guard.policy()and@guard.protect()usagebefore merging. This brings flask_demo up to the same standard so both
integration styles (declarative vs. decorator-based) are documented in one place.
Scope
What kind of change is this?
Verification
How did you verify the change?
Commands run:
Notes:
Signal-specific notes
Signal type:
trackA)trackB)Source, reproducer, or proof: N/A
Benign case checked: N/A
Performance note: N/A
TUI notes
Local-only file check
adiuvare.yamlor localconftest.pychangesRelated issue
Closes #