[#10964] feat(authn): Implement Basic authentication flow#10973
Open
lasdf1234 wants to merge 15 commits into
Open
[#10964] feat(authn): Implement Basic authentication flow#10973lasdf1234 wants to merge 15 commits into
lasdf1234 wants to merge 15 commits into
Conversation
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
…-auth-password-hashing # Conflicts: # authenticators/authenticator-basic/build.gradle.kts # server-common/src/main/java/org/apache/gravitino/server/authentication/Argon2idPasswordHasher.java # server-common/src/main/java/org/apache/gravitino/server/authentication/PasswordHasher.java # server-common/src/main/java/org/apache/gravitino/server/authentication/PasswordHasherFactory.java # server-common/src/test/java/org/apache/gravitino/server/authentication/TestArgon2idPasswordHasher.java
Co-authored-by: Copilot <[email protected]>
…anagement-apis Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Move service admin initialization into authenticator-basic and wire it through a ServerAuthenticator-style singleton initializer.\n\nCo-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.
What changes were proposed in this pull request?
This PR implements the Basic authentication flow for local authentication. It verifies Basic credentials against the local IdP user metadata, checks the stored password hash, and keeps malformed header handling covered by tests.
Why are the changes needed?
The local authentication epic needs the Basic authenticator to validate username/password credentials end-to-end instead of only parsing the Authorization header.
Fix: #10964
Does this PR introduce any user-facing change?
Users can now authenticate with Basic authentication when local authentication is enabled and the provided username/password matches the stored local IdP user metadata.
How was this patch tested?