-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support basic HTTP authentication #2038
Merged
Merged
Conversation
This file contains 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
engine/src/main/java/com/google/android/fhir/sync/HttpAuthenticator.kt
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/google/android/fhir/sync/HttpAuthenticator.kt
Outdated
Show resolved
Hide resolved
…cator.kt Co-authored-by: Omar Ismail <[email protected]>
@omarismail94 can you please take a look at my comment. thanks! |
omarismail94
approved these changes
Jun 29, 2023
omarismail94
added a commit
that referenced
this pull request
Jul 4, 2023
* distinct name for onetime new stuff Fix the version collision in Knowledge Manager (#2043) * Url is not a unique identifier for the library and should be used together with version. Made necessary changes to reflect that * Truncate the input test file to fit the memory. Use the first library with the given url if the version wasn't explicitly provided * Refactored text overflow in dropdown (#1987) * Refactored text overflow in dropdown * Removed unnecessary attributes from drop down list item xml * Update datacapture/src/main/res/layout/drop_down_list_item.xml --------- Co-authored-by: Jing Tang <[email protected]> * Spotless apply --------- Co-authored-by: Omar Ismail <[email protected]> Co-authored-by: khyativyasargus <[email protected]> Co-authored-by: Jing Tang <[email protected]> Support basic HTTP authentication (#2038) * Create a more generic and consistent way of providing authorization header * Update engine/src/main/java/com/google/android/fhir/sync/HttpAuthenticator.kt Co-authored-by: Omar Ismail <[email protected]> * Update doc for HttpAuthenticator --------- Co-authored-by: Omar Ismail <[email protected]> Engine codelab (#2059) * Initial version * make app work * add update function * Run spotless apply * Remove unnecessary header in FHIR Engine codelab README.md --------- Co-authored-by: omarismail <[email protected]> Simplify codelab code (#2060) * Initial version * make app work * add update function * Run spotless apply * Remove unnecessary header in FHIR Engine codelab README.md * Simplify engine codelab code * Update codelabs/engine/app/src/main/java/com/google/android/fhir/codelabs/engine/DownloadWorkManagerImpl.kt Co-authored-by: Omar Ismail <[email protected]> --------- Co-authored-by: omarismail <[email protected]> Co-authored-by: Omar Ismail <[email protected]> Engine codelab (#2061) * Initial version * make app work * add update function * Run spotless apply * Remove unnecessary header in FHIR Engine codelab README.md * Simplify engine codelab code * Update codelabs/engine/app/src/main/java/com/google/android/fhir/codelabs/engine/DownloadWorkManagerImpl.kt Co-authored-by: Omar Ismail <[email protected]> * Update engine codelab * Run spotless --------- Co-authored-by: omarismail <[email protected]> Co-authored-by: Omar Ismail <[email protected]> * address comments
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.
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2037
Description
Generalize the authenticator interface to accept multiple authentication methods.
Alternative(s) considered
Alternatively, we could open up the interface totally and let the user provide the authorization header, we think this is at this point unnecessary since most users would want to do either basic or bearer authentication. We can consider adding other authentication methods if there is need. Or open up the interface when there's greater need.
Type
Feature
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.