Repository navigation
feat(auth): graduate the Auth utility from auth_alpha to auth - #8818
Merged
Merged
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8818 +/- ##
========================================
Coverage 97.17% 97.17%
========================================
Files 323 323
Lines 16629 16629
Branches 1510 1510
========================================
Hits 16160 16160
Misses 328 328
Partials 141 141 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.



Issue number:
closes #8816
Summary
Changes
Auth leaves alpha. The package moves from
aws_lambda_powertools.utilities.auth_alphatoaws_lambda_powertools.utilities.authwith the same public surface:JWTVerifier,OAuth2Client,AuthErrorContext,AuthFailureReason, the exceptions, the integrations andjwt.testing. No behaviour change in any of them.auth_alphanamespace is removed, no alias. It shipped with an alpha label that said the API could change before GA, and keeping a compatibility path would only let people stay on the wrong import. An old import fails withModuleNotFoundError; the fix is changing one line.Auth (alpha)andOAuth2 client (alpha)lose the alpha title and the warning, plus a short note for people coming fromauth_alpha. Examples move toexamples/auth/, the API reference page toapi_doc/auth.md, the nox sessions and tests follow the rename.jwtextra is unchanged.User experience
New code imports from
aws_lambda_powertools.utilities.auth. Code onauth_alphastops importing and the docs say what to change. This is the one deliberate exception to our compatibility policy, allowed by the alpha label.Verification
tests/functional/auth: 502 passed, including the import probe that checks lazy loading ofpyjwt,cryptographyandurllib3.test_with_auth_required_packages(jwt extra only): 300 passed. noxtest_with_oauth2_required_packages: 202 passed.ruff,mypyclean. Every--8<--snippet path in the two docs pages resolves. The old import path fails withModuleNotFoundErrorin a clean interpreter. Agent skill reference regenerated. Written with an AI assistant; I ran everything above myself.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.