Fix FastAPI template API, add mock user name fields, and use dependency-groups#7
Merged
gillespied merged 1 commit intomainfrom Mar 3, 2026
Merged
Conversation
…cy-groups - Fix FastAPI template to use correct cognito-auth API: FastAPIAuth() with protect_app() and get_auth_user() (closes #5) - Add name, given_name, family_name to dev mock user template for cognito-auth v0.2.0 compatibility (closes #6) - Replace deprecated [tool.uv] dev-dependencies with [dependency-groups] dev in kit pyproject.toml (closes #2) - Bump version to 0.2.2
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
Addresses three open issues with small, targeted fixes:
FastAPIAuth(app)withFastAPIAuth()+auth.protect_app(app), andget_current_user()withget_auth_user()— the current template would fail at runtime.name,given_name, andfamily_namefields to match cognito-auth v0.2.0'sUserclass.[dependency-groups]instead of deprecated[tool.uv]dev-dependencies (Switch to usedependency-groups.devin pyproject.toml #2): Migrate the kit's ownpyproject.tomlto the PEP 735 format souv syncno longer warns about deprecation. (Does not change themigratecommand behaviour for existing projects.)Bumps version to 0.2.2.
Closes #2, closes #5, closes #6