instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
AztecProtocol__aztec-packages__21083
AztecProtocol/aztec-packages
21,083
defect
4644a84f9d150f2cb38fdd1c1eaaa1b18bbd7401
403327ec18abdf8fbaa78a4183cc92cd18502983
feat: batched chonk verification
Implements `ChonkBatchVerifier` for batch verifying Chonk proofs. - Only batches IPA MSM (via newly added `IPA::batch_reduce_verify()`) (Note IPA is ~90% of verification time) - Adds `bbapi::ChonkBatchVerify` - ready to be integrated into the TS Batching is done by replacing $N$ single IPA verifier checks of the ...
diff --git a/barretenberg/cpp/src/barretenberg/api/api_chonk.cpp b/barretenberg/cpp/src/barretenberg/api/api_chonk.cpp index c7ef0746710b..20347f652292 100644 --- a/barretenberg/cpp/src/barretenberg/api/api_chonk.cpp +++ b/barretenberg/cpp/src/barretenberg/api/api_chonk.cpp @@ -115,6 +115,36 @@ bool ChonkAPI::verify([[...
1
1
0
[{"id": "G0", "claim": "The std::move around result.ipa_claim is pointless because OpeningClaim<curve::Grumpkin> is trivially copyable, so the move has no effect.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AztecProtocol__aztec-packages__21104
AztecProtocol/aztec-packages
21,104
defect
3bf4f63ad2f49e7ae6da717d717427a4b063c94b
c40158ab1cae21f788f736614e9f14302b935c0f
chore: Native curve audit - pairing
### 🧾 Audit Context ecc/curve audit: pairing. In this PR we add documentation and testing for pairings. We also rewrite the implementation of the Miller loop to follow standard references. ### 🛠️ Changes Made - Add testing for pairings - Add benchmarks for pairings - Add documentation + md file - Rewrite ...
diff --git a/barretenberg/cpp/src/barretenberg/ecc/curves/bn254/PAIRING.md b/barretenberg/cpp/src/barretenberg/ecc/curves/bn254/PAIRING.md new file mode 100644 index 000000000000..616fa30e14ff --- /dev/null +++ b/barretenberg/cpp/src/barretenberg/ecc/curves/bn254/PAIRING.md @@ -0,0 +1,94 @@ +# BN254 pairing + +Write $E...
8
6
0
[{"id": "G0", "claim": "PAIRING.md should insist on the fields of definition: write the twist as E'/F_{q^2} (or similar) and present Psi as a map only defined over F_{q^12}, making explicit that the lifted Frobenius phi_q is an endomorphism of E' over F_{q^12}.", "category": "documentation", "verdict": "supported", "pr...
null
AztecProtocol__aztec-packages__21112
AztecProtocol/aztec-packages
21,112
defect
750ca79cfd294a9da79998347ed0ad308119bd78
644ed76e90c3878099f09fef2437eeaf83993b63
feat: SRS point compression - download 50% less CRS data
## Summary Switch entirely to compressed BN254 G1 points (32 bytes/point vs 64 bytes/point) everywhere: C++ native, WASM/bb.js, CI scripts, and release images. - C++ decompresses via parallel `from_compressed()` using `ThreadChunk` - SHA-256 chunk hash verification of downloaded compressed CRS data - Prover-agent rel...
diff --git a/barretenberg/cpp/src/barretenberg/bbapi/bbapi_srs.cpp b/barretenberg/cpp/src/barretenberg/bbapi/bbapi_srs.cpp index f43d385f31c4..2275270fa021 100644 --- a/barretenberg/cpp/src/barretenberg/bbapi/bbapi_srs.cpp +++ b/barretenberg/cpp/src/barretenberg/bbapi/bbapi_srs.cpp @@ -4,19 +4,33 @@ */ #include "bar...
5
3
2
[{"id": "G0", "claim": "The PR should not include a fallback to legacy uncompressed downloads; it should move to downloading only the compressed format throughout, including in bb's SRS download script.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Benc...
null
AztecProtocol__aztec-packages__21374
AztecProtocol/aztec-packages
21,374
defect
051da3d6ee4cd64d06c0a16f32106a23473fa70a
68fffe6dd30cd4f46c47f9385e515ad4d89d2fa8
chore(avm)!: Address Derivation pre-audit
Closes [AVM-55](https://linear.app/aztec-labs/issue/AVM-55/bytecode-address-deriv) ## Address Derivation Very similar to #20853 (some docs etc are copied over), largely documentation and rearranging. ### On curve check Only big change is asserting that the `ivpk` is on the curve to meet ecc.pil's precondition...
diff --git a/barretenberg/cpp/pil/vm2/bytecode/address_derivation.pil b/barretenberg/cpp/pil/vm2/bytecode/address_derivation.pil index 6f2770077ad1..096ed53649e3 100644 --- a/barretenberg/cpp/pil/vm2/bytecode/address_derivation.pil +++ b/barretenberg/cpp/pil/vm2/bytecode/address_derivation.pil @@ -4,19 +4,107 @@ includ...
8
8
1
[{"id": "G0", "claim": "On a cache hit, assert_derivation ignores the input instance, so calling it with a mismatched instance and an already-derived address does not throw, unlike the non-cached path (a possible completeness issue / non-unified behaviour).", "category": "correctness", "verdict": "supported", "priority...
null
AztecProtocol__aztec-packages__21376
AztecProtocol/aztec-packages
21,376
defect
d79e3dc817146b8a1359cf8b36973750dd6da0e1
bbb0b0113596eda14afc025b0568be66a6c7e3e5
feat: committed sumcheck for batched Hiding Translator
This PR switches the batched hiding Translator to use committed sumcheck.
diff --git a/barretenberg/cpp/src/barretenberg/chonk/batched_honk_translator/batched_honk_translator.test.cpp b/barretenberg/cpp/src/barretenberg/chonk/batched_honk_translator/batched_honk_translator.test.cpp index 6a0bb1ce21b5..804728794d8f 100644 --- a/barretenberg/cpp/src/barretenberg/chonk/batched_honk_translator/b...
1
1
1
[{"id": "G0", "claim": "The translator should re-use the existing committed sumcheck infrastructure instead of hand-rolling its own round commitment logic, since triggering committed sumcheck via `IsGrumpkinFlavor` is unnatural; e.g. a `SumcheckProver/Verifier` constructor param `committed_round_univariates` defaulted ...
null
AztecProtocol__aztec-packages__21475
AztecProtocol/aztec-packages
21,475
defect
9fbd9eff9824ffb3434ba3134610eeaf8982e563
b834830f64e574edb048b8f8a0f9e12b6caa166f
chore: merkle tree audit 2
- Addresses TODO #17755 by resolving the bounds-related issues and documenting the current leaf-read semantics in `content_addressed_append_only_tree.hpp`: - `leaf_index >= max_size_` → failure (out of tree range) - `leaf_index < max_size_` but leaf not written → return 0 with `success = true` - (Historical re...
diff --git a/barretenberg/cpp/scripts/audit/audit_scopes/merkle_tree_audit_scope.md b/barretenberg/cpp/scripts/audit/audit_scopes/merkle_tree_audit_scope.md index 44323f33605e..efab6725eff8 100644 --- a/barretenberg/cpp/scripts/audit/audit_scopes/merkle_tree_audit_scope.md +++ b/barretenberg/cpp/scripts/audit/audit_sco...
2
2
1
[{"id": "G0", "claim": "The new comment keeps the out-of-range leaf-read behaviour as an open question (Improvement) rather than resolving the TODO decision, and the reviewer asks that a decision on the native/TS contract be obtained and the TODOs resolved one way or the other since this is production code.", "category...
null
AztecProtocol__aztec-packages__21532
AztecProtocol/aztec-packages
21,532
defect
20f22a1bca08330755f28667d7c751c57fba18a3
09e29056c7b15515af9cf73439558eba4904b3b2
feat: Implement commit all and revert all for world state checkpoints
## Summary - Adds depth-aware `commitAllCheckpointsTo(depth)` and `revertAllCheckpointsTo(depth)` to the world state checkpoint system. These revert/commit all checkpoints at or above the given depth (inclusive), preserving any checkpoints created by callers below that depth. - `createCheckpoint()` now returns the ...
diff --git a/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/append_only_tree/content_addressed_append_only_tree.hpp b/barretenberg/cpp/src/barretenberg/crypto/merkle_tree/append_only_tree/content_addressed_append_only_tree.hpp index b58aa1250645..a3e101135878 100644 --- a/barretenberg/cpp/src/barretenberg/crypto/...
5
2
1
[{"id": "G0", "claim": "commit_to_depth/revert_to_depth should allow depth 0 so that commit-all/revert-all is expressible, and use exclusive semantics so that N means the resulting depth after the call is N, rather than the current inclusive reading where commit_to_depth(1)/revert_to_depth(1) means all.", "category": "...
null
AztecProtocol__aztec-packages__21567
AztecProtocol/aztec-packages
21,567
defect
24873dac9879a5a60ca1cd8c2461bdde2a9bf2ba
38929ebedac70c63f89d3c1c5758d7538d94a7cd
chore: fix mem regression
### Core Idea ...
diff --git a/barretenberg/.claude/skills/sumcheck/SKILL.md b/barretenberg/.claude/skills/sumcheck/SKILL.md new file mode 100644 index 000000000000..2c4bb8005434 --- /dev/null +++ b/barretenberg/.claude/skills/sumcheck/SKILL.md @@ -0,0 +1,296 @@ +--- +name: sumcheck +description: Comprehensive reference for the Sumcheck...
1
1
0
[{"id": "G0", "claim": "The numbering in the comment on the global folding state ('0 = not yet folded, 2 = after round 0, 1 = after round 1+') is confusing, and a comment explaining its meaning should be added.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AztecProtocol__aztec-packages__22253
AztecProtocol/aztec-packages
22,253
defect
284a63454ac089be0991afc1b711b9a278877f41
c9f8b1502f519e444a2774ac1cea32fb08b80ff5
chore: Protective asserts in proof decompression
Resolves the following defense in depth issues related to Chonk Proof decompression: - [2205](https://github.com/AztecProtocol/barretenberg-claude/issues/2205): ensure deserialized u256s are less than field modulus. (No real risk in not fixing this; there's no attack) - EDIT: [2207](https://github.com/AztecProtocol/b...
diff --git a/barretenberg/cpp/src/barretenberg/chonk/proof_compression.hpp b/barretenberg/cpp/src/barretenberg/chonk/proof_compression.hpp index 3c8692c9ccf8..8dfe3c30ed4d 100644 --- a/barretenberg/cpp/src/barretenberg/chonk/proof_compression.hpp +++ b/barretenberg/cpp/src/barretenberg/chonk/proof_compression.hpp @@ -3...
2
2
1
[{"id": "G0", "claim": "The comment above BN254_INFINITY_MARKER saying that x=0 is a valid BN254 curve point while Grumpkin does not need the marker may have the two fields reversed, and should be double checked.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
AztecProtocol__aztec-packages__22320
AztecProtocol/aztec-packages
22,320
defect
02ed704b7f34c635cf92197668bec19c485fc71d
53102706e4a7f48944639f1a6f8ad15d199cb658
chore: use fixed lookup tables in recursive IPA verifier
The dominant cost of recursive IPA verifier (used in the root rollup circuit) is the $\mathcal{O}(N)$ MSM of the SRS elements (of Grumpkin curve) and the scalar vector $\vec{s}$. Currently, we use 4-bit ROM tables to store multiples of each SRS element and break down each scalar into 4-bit slices to perform scalar mult...
diff --git a/barretenberg/cpp/src/barretenberg/commitment_schemes/ipa/ipa.hpp b/barretenberg/cpp/src/barretenberg/commitment_schemes/ipa/ipa.hpp index fe0b8bc09c0b..408358a4d86e 100644 --- a/barretenberg/cpp/src/barretenberg/commitment_schemes/ipa/ipa.hpp +++ b/barretenberg/cpp/src/barretenberg/commitment_schemes/ipa/i...
1
1
0
[{"id": "G0", "claim": "A comment should be added at the computed_G_zero call site explaining why it is safe to use unconditional_add (the incomplete addition formula) there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AztecProtocol__aztec-packages__22351
AztecProtocol/aztec-packages
22,351
defect
ba14c17a809f212bc9be3600feb0ba801ec0702e
7bc62e990612a61f70ee125620c40427bd671658
chore: ECCVM QoL — operator precedence fix, assert correctness, documentation
## Summary Small quality-of-life improvements for ECCVM code clarity and correctness: - Fix operator precedence in `skip_entire_row` — a prover-side optimization where a misplaced parenthesis meant `lagrange_last[idx+1]` wasn't compared to 0. Hidden by the z_perm check that precedes it. - Fix `BB_ASSERT` → `BB_ASSERT...
diff --git a/barretenberg/cpp/src/barretenberg/eccvm/eccvm.test.cpp b/barretenberg/cpp/src/barretenberg/eccvm/eccvm.test.cpp index 6be40ddd3d63..55a9ba6dd83f 100644 --- a/barretenberg/cpp/src/barretenberg/eccvm/eccvm.test.cpp +++ b/barretenberg/cpp/src/barretenberg/eccvm/eccvm.test.cpp @@ -559,3 +559,44 @@ TEST_F(ECCVM...
1
1
1
[{"id": "G0", "claim": "The REPEATED_COMMITMENTS pairing should be verified by constructing commitments as Shplemini does and checking they match at the prescribed indices, in one-time tests for every flavor, instead of native runtime asserts in the prod verifier code.", "category": "testing", "verdict": "supported", "...
null
AztecProtocol__aztec-packages__22417
AztecProtocol/aztec-packages
22,417
defect
cf1a239d27d8bfd0bfc42a15d24a9f9ef2ea3c5a
662365395961c5cafec78b049e440ccdcb35a299
fix: add clear error for unsatisfiable ACIR AssertZero opcode
## Summary When an ACIR `AssertZero` opcode has no variables but a non-zero constant, the circuit is fundamentally unsatisfiable (`nonzero == 0` can never hold). Previously this hit a generic assertion about empty gates with no indication of the real problem. Added an early check in `assert_zero_to_quad_constraints` t...
diff --git a/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp b/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp index 519d3f991255..60b9710b8b4f 100644 --- a/barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp +++ b/barretenberg/cpp/src/b...
1
1
0
[{"id": "G0", "claim": "Use `BB_ASSERT_EQ(constant, fr::zero(), \"failure msg\")` instead of the manual if-plus-assert_failure check for the unsatisfiable AssertZero constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Azure-Samples__rag-postgres-openai-python__66
Azure-Samples/rag-postgres-openai-python
66
defect
c5ce01725f1450e7ab130cad5e8869b97ceca567
8ea0abf9e0c5c2ed3f8bee157a6e4695ba729669
Add Playwright Tests
## Purpose This PR adds playwright tests. ## Does this introduce a breaking change? When developers merge from main and run the server, azd up, or azd deploy, will this produce an error? If you're not sure, try it out on an old environment. ``` [ ] Yes [x] No ``` ## Type of change ``` [ ] Bugfix ...
diff --git a/.devcontainer/docker-compose.yaml b/.devcontainer/docker-compose.yaml index cd40833..552bc0e 100644 --- a/.devcontainer/docker-compose.yaml +++ b/.devcontainer/docker-compose.yaml @@ -27,6 +27,9 @@ services: POSTGRES_USER: admin POSTGRES_PASSWORD: postgres + ports: + - "5432:5432" +...
3
2
0
[{"id": "G0", "claim": "The pre-existing comment saying the DB port is forwarded via devcontainer.json forwardPorts and that the ports property only matters for Codespaces is not true for a local devContainer, where the database is not accessible unless its port is forwarded in docker-compose.yaml.", "category": "docum...
null
AzureAD__azure-activedirectory-library-for-android__1048
AzureAD/azure-activedirectory-library-for-android
1,048
defect
219edf2663e97a55e266165c6a497e752b8f99d1
37fb54f08e74c21921b3c714de1bcef13fa100f2
Fix the bug when broker returns null for getIntentForInteractiveRequest
Fix for issue #1031 Add the null check in getIntentForInteractiveRequest, throw AuthenticationException with error code BROKER_AUTHENTICATOR_NOT_RESPONDING if getting a null intent from broker. Fix the bug that getIntentForInteractiveRequest returning null when getting any exception during the call of getIntentF...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerAccountServiceTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerAccountServiceTest.java index d97c6f1bc..a1da548b1 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerAccountServiceTest.java +++ b/adal/src/androidTest/j...
4
4
2
[{"id": "G0", "claim": "The fail message in BrokerAccountServiceTest misspells \"is\" as \"ia\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tests wrapped in try/catch {fail()} should instead declare AuthenticationException on the method ...
null
AzureAD__azure-activedirectory-library-for-android__1065
AzureAD/azure-activedirectory-library-for-android
1,065
defect
c3f9a63a526f6dbdd675a2dff8e1aa6a4756520f
40489954e7911673dc94fa506e99f1d50cd108f3
Returning the HTTP Error Response code back to the apps when ADAL has it
Fix for #1046 1. Update the AuthenticationException and AuthenticatoinResult - the developer can get "Retry-After" headers by calling **AuthenticationException.getHttpResponseHeaders()** - get response body by calling **AuthenticationException.getResponseBody()**. To get the the error code, like "invalid_grant" f...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java index 7329ade26..16eb45243 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java +++ b/adal/sr...
11
8
1
[{"id": "G0", "claim": "Rethrowing a caught exception wrapped in a new AuthenticationException hardcoded to ADALError.SERVER_ERROR can be misleading for 4XX client-error responses, and the code should check whether the caught exception already carries an ADALError before rethrowing.", "category": "correctness", "verdic...
null
AzureAD__azure-activedirectory-library-for-android__1082
AzureAD/azure-activedirectory-library-for-android
1,082
defect
da9b0ddeab1cc92603d3b9058e8ab5fa7abc3614
7483a8e897370af0039026385fc238f5e4aeebb5
URL Query Parameter Parsing | Fix for #1078
RFC #1078 Update the URI parsing to handle the situation when parsing the key with empty value case. This is because the certAuthorities list returned from server could be null when either no certificate or no permission for ADFS service account for the Device container in AD. We should return the NoDeviceCertR...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/ChallengeResponseBuilderTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/ChallengeResponseBuilderTests.java index a6e784b65..df7f1d95a 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/ChallengeResponseBuilderTests.java +++ b/adal/sr...
5
3
3
[{"id": "G0", "claim": "When UnsupportedEncodingException is thrown while decoding a query parameter, the loop can still store an entry with a null value (put(key, null) or put(null, null)), which could never happen before this change, and the ask is to skip storing such failed pairs instead.", "category": "correctness...
null
AzureAD__azure-activedirectory-library-for-android__114
AzureAD/azure-activedirectory-library-for-android
114
defect
ba3c6c98198350e36b7f5b27deaf2fdbdcab4bfe
5023532abb161d50d8fb0322e3ae277b853970ba
Dev userid mismatch
Return error if cache look up returns userinfo different than requested Return idtoken in refresh token from previous value
diff --git a/adal/src/com/microsoft/adal/ADALError.java b/adal/src/com/microsoft/adal/ADALError.java index 9bded18ac..81954ed27 100644 --- a/adal/src/com/microsoft/adal/ADALError.java +++ b/adal/src/com/microsoft/adal/ADALError.java @@ -90,6 +90,8 @@ public enum ADALError { AUTH_FAILED_INTERNAL_ERROR("Invalid pa...
1
1
0
[{"id": "G0", "claim": "Add a space between \"Token is returned from background call\" and the correlation info appended by getCorrelationLogInfo().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__119
AzureAD/azure-activedirectory-library-for-android
119
defect
9b310a069d137091200a59518a0580c2667142ac
f244e872da8f8b7c5bdd5aee92faa04ab8f8b84b
Dev userinfo return
return userinfo in case ADAL uses AccountManager to get token
diff --git a/adal/src/com/microsoft/adal/AuthenticationActivity.java b/adal/src/com/microsoft/adal/AuthenticationActivity.java index dd63b9d1c..b6b752ebc 100644 --- a/adal/src/com/microsoft/adal/AuthenticationActivity.java +++ b/adal/src/com/microsoft/adal/AuthenticationActivity.java @@ -829,6 +829,20 @@ protected void...
1
1
1
[{"id": "G0", "claim": "The new code putting UserInfo fields into the broker-response intent in AuthenticationActivity (and the changes below it) should have test cases added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__1190
AzureAD/azure-activedirectory-library-for-android
1,190
defect
bb55132c1059098f3214f75de0b3de2ed28dd0a7
9c39d95d609d479467d972e71e17b574482345ff
refactor broker validation out of the BrokerProxy so it can be shared
I'd like to use the signature validation code from BrokerProxy for my method in the Company Portal that will provide the enrollment id to the broker. That method needs to verify that the call is coming from a real broker, so it needs to do the exact same signature validation. This refactoring moves the broker validat...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java index 2bad30a46..f4678ee4f 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java +++ b/adal/src/androidTest/java/com/microsoft/aad/ad...
2
1
1
[{"id": "G0", "claim": "The new BrokerValidator class should be placed in the common repo under the package com.microsoft.identity.common.internal.broker instead of shipping in ADAL, where as proposed it would become part of ADAL's public surface area.", "category": "design", "verdict": "supported", "priority": "P1", "...
null
AzureAD__azure-activedirectory-library-for-android__1239
AzureAD/azure-activedirectory-library-for-android
1,239
defect
29c5605d5ca26d21d69d9ce471c4ef8b5438cff8
08b7fd556e87f6969f0664c108c028d5dceae807
Fixed bug and added test for ATSSync overload
Fixed a copy/paste bug introduced during refactoring to address code review. Added to test to provided coverage for this overload.
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java index 0d03d715c..5a80cdc06 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java +++ b/adal/src/androidTes...
1
1
0
[{"id": "G0", "claim": "The `common` submodule pointer references a June 18 commit; advance the submodule commit to the latest before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
AzureAD__azure-activedirectory-library-for-android__127
AzureAD/azure-activedirectory-library-for-android
127
defect
6d67d986756ce23f7b763e2eca5e4bda5ab40c86
3f5e7fe0ed97fd4b01c0c62e4c86d1c86658aa2b
Dev log clean
clean up log message add related test for log message change
diff --git a/adal/src/com/microsoft/adal/Logger.java b/adal/src/com/microsoft/adal/Logger.java index a2ff3272c..e40b3f83b 100644 --- a/adal/src/com/microsoft/adal/Logger.java +++ b/adal/src/com/microsoft/adal/Logger.java @@ -32,7 +32,12 @@ public class Logger { /** * error code: message. additionalMessage ...
2
2
0
[{"id": "G0", "claim": "The new LOG_FORMAT_ERROR_CODE_MESSAGE_ADDITIONAL constant in Logger.java appears unused and duplicates what Android's string formatting already offers, so the reviewer asks where it is even used.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
AzureAD__azure-activedirectory-library-for-android__13
AzureAD/azure-activedirectory-library-for-android
13
defect
5696b87587eed90347289cb81be551df162eb4b3
162e55e5a36eb2d174af3f4b16b3d512aa6191a0
Correlationid update with E2E test
Correlationid was not passed to webrequest from API layer. AuthenticationContext is updated to address that. Add E2E tests at InstrumentationTest for correlationId Refactor refresh token processing callback to handle errors in the message body and report that in the log. Add tests with logger callback to verify correl...
diff --git a/adal/src/com/microsoft/adal/AuthenticationContext.java b/adal/src/com/microsoft/adal/AuthenticationContext.java index 9fb3f0471..8ae872ba4 100644 --- a/adal/src/com/microsoft/adal/AuthenticationContext.java +++ b/adal/src/com/microsoft/adal/AuthenticationContext.java @@ -169,7 +169,7 @@ public void acquire...
4
4
0
[{"id": "G0", "claim": "Log the correlation id when processing the url for token in onActivityResult.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log the correlation id again in the token-received callback in onActivityResult.", "category": "...
null
AzureAD__azure-activedirectory-library-for-android__131
AzureAD/azure-activedirectory-library-for-android
131
defect
313496d5dfe1fc0f78a1e6cf97bb98d68de2c138
fcb6bbb1e174acc2acaf5ce67fa0112a6fec4891
Fix log message for idtoken
Update hello app manifest to show prompt in a dialog Update activity layout file: modify layout height to fill_parent which seem to fix issue in KitKat for ADFS page.
diff --git a/adal/res/layout/activity_authentication.xml b/adal/res/layout/activity_authentication.xml index f4d8cbf86..7c8378a6e 100644 --- a/adal/res/layout/activity_authentication.xml +++ b/adal/res/layout/activity_authentication.xml @@ -17,7 +17,7 @@ <WebView android:id="@+id/webView1" androi...
3
2
0
[{"id": "G0", "claim": "Use StringExtensions.IsNullOrBlank instead of the hand-rolled null/empty checks in the sample's refresh callback.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change enabling loadConfigFromResource() in setUp should be signe...
null
AzureAD__azure-activedirectory-library-for-android__1313
AzureAD/azure-activedirectory-library-for-android
1,313
defect
dfda5e94948fd07c3c49696a8cfdd8b34b155bcc
fdcbad01f519ef92b794bec3754a1453fa0d3834
Adal changes to support claims on Acquire Token Silent
- Added two new API's for Acquire Token Silent calls - Passing Claims parameter with token request as well if present - Changes are made to Acquire Token call to use RT to get a new AT if claims parameter is present - Unit tests to verify if the token request is constructed correctly with claims
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java index 1daddf791..aee8c1878 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java +++ b/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java...
2
2
0
[{"id": "G0", "claim": "The API telemetry documentation may not have been updated with the new telemetry values (ACQUIRE_TOKEN_SILENT_SYNC_CLAIMS_CHALLENGE = \"15\" and ACQUIRE_TOKEN_SILENT_ASYNC_CLAIMS_CHALLENGE = \"16\") that this PR adds, and should be updated.", "category": "documentation", "verdict": "supported", ...
null
AzureAD__azure-activedirectory-library-for-android__1343
AzureAD/azure-activedirectory-library-for-android
1,343
defect
780a9b21d0dd9bf09c90eb7211580f90bcfec888
4b1c5fc6b831f6260ea06674669f1abf771a1b49
Added app name , app version and client capabilities to Auth and Token requests
- Added app name and app version : [API proprosal ](https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview/pullrequest/542?_a=files&path=%2FClientAppNameVersion%2Foverview.md) - Refactored acquireToken overloads to remove duplicate code. - Updated unit tests to validate these new query params ...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java index f91c23f00..9d2d6b737 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java +++ b/adal/sr...
7
7
2
[{"id": "G0", "claim": "The test helper getPoseMessage should be renamed to getPostMessage.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loginHint check should use StringExtensions.isNullOrBlank instead of TextUtils.isEmpty.", "category": ...
null
AzureAD__azure-activedirectory-library-for-android__1498
AzureAD/azure-activedirectory-library-for-android
1,498
defect
888f4be21703d912dcb32852d5d433b775e6abe2
6a8cd7f69faf80b192031eb1a6ae1d84e29af0e0
Fix for sovereign caching authority mismatch
This PR corrects an issue whereby the ADAL cache's authority property is not updated to match the `cloud_instance_hostname` returned from sovereign HRD
diff --git a/adal/src/main/java/com/microsoft/aad/adal/TokenCacheAccessor.java b/adal/src/main/java/com/microsoft/aad/adal/TokenCacheAccessor.java index 66238df80..dc92499f7 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/TokenCacheAccessor.java +++ b/adal/src/main/java/com/microsoft/aad/adal/TokenCacheAccessor....
1
1
1
[{"id": "G0", "claim": "The new authority-mismatch handling in TokenCacheAccessor.updateTokenCache should also come with a test update.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__1540
AzureAD/azure-activedirectory-library-for-android
1,540
defect
da1848a6cfdb76d5a65811694868491e4593e5f2
625ad73311fcb34197b1aa05a65ffc4bb9db6adf
Add Saml assertion feature
ADAL SDK on Android does not support silent token acquision based on SAML assertion, which is needed for MSA guest in AAD tenant related use cases.. Changes made : * Changes made 7 files in source code for adding this feature * A Test has been added in the AuthenticationContextTest file for the public API * Cha...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java index aadaa1f84..46a53463d 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java +++ b/adal/src/androidTes...
4
3
0
[{"id": "G0", "claim": "The AssertionVersion enum in the sample app's Constants.java uses vague names for its field, constructor parameter and getter (text, s, getText()); rename them to say what the value is (and document it with javadoc).", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
AzureAD__azure-activedirectory-library-for-android__1541
AzureAD/azure-activedirectory-library-for-android
1,541
defect
9a4934f4eb23bd9add3d38d529ed8dfb1c0a4c12
ecb4b2ee3e8f29a840a878821585cf9230560f05
Closes #1073 - Explicitly Disables Content Provider Access to WebViews
Closes #1073 Also doing some minor cleanup: - Fixed _obvious_ formatting issues (there are many in this file, so showing some restraint) - Removed impossible `if` condition in `AuthenticationDialog.java`
diff --git a/adal/src/main/java/com/microsoft/aad/adal/AuthenticationActivity.java b/adal/src/main/java/com/microsoft/aad/adal/AuthenticationActivity.java index 99f8bc89f..19aa2a189 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/AuthenticationActivity.java +++ b/adal/src/main/java/com/microsoft/aad/adal/Authent...
1
1
0
[{"id": "G0", "claim": "The sendResponse method should declare its returnCode parameter final, as it already does for responseIntent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__1574
AzureAD/azure-activedirectory-library-for-android
1,574
defect
2cb55230abd829c079a685ed4461a1f2b3e9938a
20e4c2c105fafe69371d624643ac8806ce762f6e
Update testutils and uiautomationutils for java 8 compat
Upgrade mockito android version to latest Updated compile sdk version Updated target sdk version Added java 8 compat (https://developer.android.com/studio/write/java8-support)
diff --git a/adal/build.gradle b/adal/build.gradle index 70c40be35..101f9497a 100644 --- a/adal/build.gradle +++ b/adal/build.gradle @@ -40,9 +40,20 @@ buildscript { } android { + + compileOptions { + // Flag to enable support for the new language APIs + coreLibraryDesugaringEnabled true + /...
6
2
0
[{"id": "G0", "claim": "The `abiSelection=x86_64` default that this pull request adds to gradle.properties should be removed (the suggestion block deletes the line).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "gradle/versions.gradle should get a trail...
null
AzureAD__azure-activedirectory-library-for-android__1579
AzureAD/azure-activedirectory-library-for-android
1,579
defect
8a5e5894bf6ea3f428cd6a31a5a490dddc78128f
f2f1938ca80173f675d6163f10f150206465e3e1
Resolving Authenticator MFA flow for Webview
This PR contains changes needed in ADAL. Related PR : https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/1195
diff --git a/adal/src/main/java/com/microsoft/aad/adal/BasicWebViewClient.java b/adal/src/main/java/com/microsoft/aad/adal/BasicWebViewClient.java index c93f9e78b..574083a4c 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/BasicWebViewClient.java +++ b/adal/src/main/java/com/microsoft/aad/adal/BasicWebViewClient....
6
5
1
[{"id": "G0", "claim": "Add a log line at the return-false branch explaining why a Play Store install URL is being blocked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the 'Request to open PlayStore.' log say which application is being i...
null
AzureAD__azure-activedirectory-library-for-android__1602
AzureAD/azure-activedirectory-library-for-android
1,602
defect
d8667ca6d08d628ebe32b61ab332fbde3c68cbb0
107cc9e3bae02d41987c956d2e0214fb34f56e57
Fix for mocking final classes in some instrumented tests
This PR is meant to address failures noted in the instrumented tests. The failures were happening because Mockito does not allow mocking final classes and thus a workaround has been arrived where a custom PackageInfo and respective SigningInfo has been developed. Depends on: https://github.com/AzureAD/microsoft-auth...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index 50d18d118..a4c29ed36 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
5
2
0
[{"id": "G0", "claim": "The new MockedPackageInfo.java and MockedSigningInfo.java files should have the license/copyright declaration at the top of the file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A Robolectric Shadow could be used instead...
null
AzureAD__azure-activedirectory-library-for-android__1616
AzureAD/azure-activedirectory-library-for-android
1,616
defect
f7bd0e17b4ac245155b85e3eb0dd88a5f1439ade
068b74a40cc844a9f3b316739a16d2718ffb0f7a
Implements a fix for ADAL cache replication
Testing still in progress, but the outline of a fix for the below bug: - https://identitydivision.visualstudio.com/Engineering/_workitems/edit/1437575 Relies on changes in common: - https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/1444
diff --git a/adal/src/main/java/com/microsoft/aad/adal/AuthenticationContext.java b/adal/src/main/java/com/microsoft/aad/adal/AuthenticationContext.java index 7c8711bc0..061767578 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/AuthenticationContext.java +++ b/adal/src/main/java/com/microsoft/aad/adal/Authentica...
4
3
0
[{"id": "G0", "claim": "The new DelegatingCache class lacks the javadoc the author noted as TODO at the class declaration.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TokenCacheAccessor delegation check could use isAssignableFrom instead of...
null
AzureAD__azure-activedirectory-library-for-android__1624
AzureAD/azure-activedirectory-library-for-android
1,624
defect
a7e175ee6dea1cc7cad410a08a414f39ebb64bf1
5b3234829a1e30b6658e53e2a73bbb11f93a5922
Take latest changes from common, migration of shared prefs
Adapt to: https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/1465
diff --git a/adal/build.gradle b/adal/build.gradle index bd79e6504..b72ca6cb7 100644 --- a/adal/build.gradle +++ b/adal/build.gradle @@ -150,6 +150,7 @@ dependencies { snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '3.4.5', changing: true) // 'dist' flavor dependencies + //TODO: we...
5
2
0
[{"id": "G0", "claim": "The test app's adalVersion bump from 3.1.2 to 3.1.3 was possibly unintentional and should be confirmed.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The wrapper distributionUrl switch from the -all to the -bin archive was f...
null
AzureAD__azure-activedirectory-library-for-android__1711
AzureAD/azure-activedirectory-library-for-android
1,711
defect
dc579b142242bd0a57d239c91fb913bc66d05d3f
731d26c212a1763496608d666e64136db2fc4fd0
Fadi/test 1610899
This PR includes an added test in ADAL to allow removal of this manual E2E test case by replacing it with a component test https://identitydivision.visualstudio.com/Engineering/_workitems/edit/1610899. Note that the component test is not meant to cover this entire E2E test case, just the adal client side request/res...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java index add0c74ed..10c822bf1 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java +++ b/adal/src/androidTes...
3
2
1
[{"id": "G0", "claim": "The new test should also assert the value of the deviceid claim, not only that the claim is present.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test can compare the full access token with TEST_ACCESS_TOKEN_WITH_DEVICE_ID ...
null
AzureAD__azure-activedirectory-library-for-android__1725
AzureAD/azure-activedirectory-library-for-android
1,725
defect
1b1b9bac84b68330445b63446fddab260551ad3b
8e0505288c76263340542f7ea974aec4106556d2
Remove dependency from common's storagehelper
Make ADAL use its own copy of StorageHelper.... so that we can kill common's storageHelper for good. related: https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/2013
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/DefaultTokenCacheStoreTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/DefaultTokenCacheStoreTests.java index 41877b66f..68599b31b 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/DefaultTokenCacheStoreTests.java +++ b/adal/src/andr...
2
2
0
[{"id": "G0", "claim": "Declare the existingPair local variable final.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use Logger.v instead of the fully qualified common Logger.verbose for the existing-keypair log line, to be consistent with the ...
null
AzureAD__azure-activedirectory-library-for-android__1755
AzureAD/azure-activedirectory-library-for-android
1,755
defect
98695b049a132e02105459f5e3a46ada1c45a68f
587445c72cdc6638d172c615584f54dc23af7600
Target, compile SDK, AGP and gradle versions increased
- Target sdk version changed to 33 - Compile sdk version changed to 34 - AGP version changed to 7.4.2 - Gradle distribution url changed to 7.5 After changing above versions, I had to update other dependencies for compatibility - Powerlift version changed to 1.0.3 - Bouncy castle version changed to 1.69 - rob...
diff --git a/adal/build.gradle b/adal/build.gradle index 71c4a6569..218eae0d7 100644 --- a/adal/build.gradle +++ b/adal/build.gradle @@ -54,7 +54,7 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } - compileSdkVersion rootProject.ext.compileSdkVersion + compileSdk rootProject.ext.compileS...
1
1
0
[{"id": "G0", "claim": "Check whether the AAR file-rename workaround can be done in the maven release pipeline itself instead of in adal/build.gradle.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__21
AzureAD/azure-activedirectory-library-for-android
21
defect
6f3681994487d49614558972af52a98b33c40d73
be3115af0efa16875e3313b73772464dc8bad92f
Encrypt/Decrypt helper class
Android stores SharedPreferences as clear text in app data. This class will be used to encrypt text before storage. It will give one level of protection. AndroidKeyStore (SDK >= 18) provides more security. It will be integrated to the storage related classes.
diff --git a/.gitignore b/.gitignore index 79900fa7d..257c43d0b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,9 @@ gen/ # Local configuration file (sdk path, etc) local.properties +#credential file +integration_tests.properties + # Eclipse project files .classpath .project diff --git a/adal/lint.xml b/ad...
21
17
8
[{"id": "G0", "claim": "The new SERVER_INVALID_JSON_RESPONSE message should capitalize JSON.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ANDROIDKEYSTORE_FAILED message would sound better as \"Failed to use AndroidKeyStore\".", "category": "...
null
AzureAD__azure-activedirectory-library-for-android__247
AzureAD/azure-activedirectory-library-for-android
247
defect
81cdaa3a479b55a8df1b22cb87e46d00ea6c6fae
2be08384f2782f574cab811bb7f5a3e75dcf58ef
Common tenant
update for common endpoint to make it similar to adal.net
diff --git a/samples/hello/src/com/microsoft/aad/adal/hello/Constants.java b/samples/hello/src/com/microsoft/aad/adal/hello/Constants.java index 8b2f72ba4..dae076eab 100644 --- a/samples/hello/src/com/microsoft/aad/adal/hello/Constants.java +++ b/samples/hello/src/com/microsoft/aad/adal/hello/Constants.java @@ -32,7 +3...
1
1
1
[{"id": "G0", "claim": "The updateAuthority regex replaceFirst(\"(?i)/common\", ...) is not anchored to the end, so an authority with an extra path after /common or a trailing slash may have the wrong occurrence replaced.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__27
AzureAD/azure-activedirectory-library-for-android
27
defect
574e4c8d1d4552d08bc0cf657a905b79327fa6a7
189c3f56348edc040c7c4b84f16fc19710f5eb68
Check manifest file permissions for internet and check network connection
Manifest file permissions need to be set in the app to access the internet. ADAL will check that to give correct error to developer to setup AndroidManifest file correctly. Connection can be lost and refresh token request should not send if connection is not available. It will remove the token.
diff --git a/adal/src/com/microsoft/adal/ADALError.java b/adal/src/com/microsoft/adal/ADALError.java index b2a50c079..a79e93494 100644 --- a/adal/src/com/microsoft/adal/ADALError.java +++ b/adal/src/com/microsoft/adal/ADALError.java @@ -81,6 +81,8 @@ public enum ADALError { DEVICE_FILE_CACHE_IS_NOT_WRITING_TO_FILE...
1
1
1
[{"id": "G0", "claim": "checkInternetPermission should throw a more specific ADAL-branded exception (e.g. AuthenticationException) instead of IllegalArgumentException.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__32
AzureAD/azure-activedirectory-library-for-android
32
defect
c0f9ad1155aa758cac20f1f69bc45c2d9edfc924
f13be0287484496cb4738ee2d3f41134379b34fb
ClientTrace info to headers and webview's url
ClientTrace info in headers and queryparam for webview with related tests
diff --git a/adal/src/com/microsoft/adal/ADALError.java b/adal/src/com/microsoft/adal/ADALError.java index ada306940..66537d575 100644 --- a/adal/src/com/microsoft/adal/ADALError.java +++ b/adal/src/com/microsoft/adal/ADALError.java @@ -24,8 +24,9 @@ public enum ADALError { CALLBACK_IS_NOT_FOUND("Active callback i...
4
2
0
[{"id": "G0", "claim": "Rename the new INFO_ADAL_* diagnostic constants to the agreed ADAL_ID naming (e.g. ADAL_ID_PRODUCT, ADAL_ID_VERSION).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a short comment explaining that these constants are ...
null
AzureAD__azure-activedirectory-library-for-android__338
AzureAD/azure-activedirectory-library-for-android
338
defect
eb373d3187688fc57d71cf90df00fbaf12fe8eff
8f11caff88045b1f884db70b68c588c79134b268
Support broker user
Added getBrokerUsers method to return UserInfo from Authenticator side. Account obj has only username. It is not providing userid. Fix: Additional user fields are stored in the user data. ADAL access this through authenticator API and returns the UserInfo array. <a href='#crh-start'></a><a href='#crh-data-%7B%22proces...
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java index 92735f32f..fcb7cbb9e 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java @@ -112,7 +112,7 @@ pub...
6
5
0
[{"id": "G0", "claim": "Call result.taskResult.getUserInfo() once and save it in a variable instead of calling it repeatedly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding logs is good, but it may not be a good idea to add expensive call...
null
AzureAD__azure-activedirectory-library-for-android__483
AzureAD/azure-activedirectory-library-for-android
483
defect
a6e97504734da940fb28214e43b87209f61aa3b2
9cb44d875a8de928502bcfed9a3af56bd962ac43
Implemented the redirectUri checking function.
Implemented the redirectUri checking function.The redirectUri is checked before sending the request. If the redirectUri from the client does not match the valid redirectUri, we will log the error and the client app will not jump to the login page.
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationContext.java b/src/src/com/microsoft/aad/adal/AuthenticationContext.java index 5b1ab308c..7f6c5f4b8 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationContext.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationContext.java @@ -22,6 +22,7 @@ import j...
15
14
1
[{"id": "G0", "claim": "The new redirect-uri checking method needs unit tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The method checkRedirectUri should be renamed to verifyBrokerRedirectUri.", "category": "maintainability", "verdict": "supporte...
null
AzureAD__azure-activedirectory-library-for-android__503
AzureAD/azure-activedirectory-library-for-android
503
defect
a7d79ab123d95238d1e9405f99f0696c5d8a298e
a8e6b93689fe9030f44bc7a02dc456037367a149
Add support for family client id #496
1. Add support for family client id #496 2. Add unit test for family client id support 3. code refactor
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationConstants.java b/src/src/com/microsoft/aad/adal/AuthenticationConstants.java index 3d001a962..815c74a1e 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationConstants.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationConstants.java @@ -135,6 +135,8 @@...
33
14
3
[{"id": "G0", "claim": "The method invoked at the commented line should be renamed so its name contains a verb (suggestion: GetRefreshToken).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The familyClientId check can be merged with the outer ...
null
AzureAD__azure-activedirectory-library-for-android__509
AzureAD/azure-activedirectory-library-for-android
509
defect
600265306e9cfe9b90de170e6fe739be87043208
ac741d746a66788865a804ac71b3601eff77e7d3
Fix of #493: No way to turn-off Hardware acceleration in AuthenticationActivity WebView
Issue: By default WebView is always hardwareAccelerated due to which on some devices it crashes intermittently because of bad GPU drivers. There is a way to turn-off hardware acceleration by setting webview layer type to 'LAYER_TYPE_SOFTWARE' but as webView used in AuthenticationActivity and AuthenticationDialog is not...
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java index db6c8c97b..8c352030b 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java @@ -203,9 +203,16 @@ pr...
1
1
0
[{"id": "G0", "claim": "The new setter/getter names setWebViewHardwareAcceleration/isWebViewHardwareAccelerated are misleading (they sound like they change the default) and should be renamed to make clear they control disabling WebView hardware acceleration, e.g. setDisableWebViewHardwareAcceleration/getDisableWebViewH...
null
AzureAD__azure-activedirectory-library-for-android__510
AzureAD/azure-activedirectory-library-for-android
510
defect
a3fa682e5512eb06b7864aae92df50af5ab5d063
963ca07b4bb5a5f03f9c178d8224f6fcf01347c2
Reveal uncaught exceptions
All async tasks currently swallow runtime exceptions because if you use ExecutorSerice.submit() the only way to get exceptions is to call blocking get() method of the Future that was returned by submit. When switch to execute it will throw exceptions to thread parent. To support backward compat for existing public meth...
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationContext.java b/src/src/com/microsoft/aad/adal/AuthenticationContext.java index f5bcc22c2..2b4e590ba 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationContext.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationContext.java @@ -30,6 +30,7 @@ import j...
4
1
0
[{"id": "G0", "claim": "Do not change whitespace (the cast spacing in isConnectionAvailable) unless it has a functional impact.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the SettableFuture change is necessary at all, s...
null
AzureAD__azure-activedirectory-library-for-android__518
AzureAD/azure-activedirectory-library-for-android
518
defect
9dc7c35f17c42dcd3aa8202c1808000ad72a9a3a
05866f74f8a132a21649525edd71f8e99bf33fd7
AuthenticationException derive from Exceptions
It allows to detect where this exception need to be caught Also derive internal errors (AuthenticationServerProtocolException and ResourceAuthenticationChallengeException) from AuthenticationException to keep exception system consistent Some developer exceptions better to stay as Runtime, using IlligalStateException/Il...
diff --git a/src/src/com/microsoft/aad/adal/ADALError.java b/src/src/com/microsoft/aad/adal/ADALError.java index 939f4fe93..5a5c4f13d 100644 --- a/src/src/com/microsoft/aad/adal/ADALError.java +++ b/src/src/com/microsoft/aad/adal/ADALError.java @@ -500,7 +500,17 @@ public enum ADALError { /** * The redirectU...
2
1
1
[{"id": "G0", "claim": "Travis CI is reporting errors on this pull request's build.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The reviewer questions the need for the inner AuthenticationException wrapped in the IllegalArgumentException thrown from...
null
AzureAD__azure-activedirectory-library-for-android__520
AzureAD/azure-activedirectory-library-for-android
520
defect
ea39f50d44a401f1e9a0647853df446270f6c1d2
ac6d16369fa062bc8f126ff72b905d1e9d570b81
The redirectUri should not be checked if it is a silent request
The broker redirectUri will be checked only if the request from client App is not silent. Otherwise the acquiretokensilent() might be interrupted by DeveloperAuthenticationException (I know it is a confusing exception name, any suggestion?) - add the condition to go to the verifyBrokerRedirectUri() - modify one unit te...
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationContext.java b/src/src/com/microsoft/aad/adal/AuthenticationContext.java index dda9ff9a8..2ab756ac7 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationContext.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationContext.java @@ -1280,7 +1280,9 @@ priva...
1
1
0
[{"id": "G0", "claim": "Add comments explaining why the broker redirectUri check is skipped for silent requests.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__522
AzureAD/azure-activedirectory-library-for-android
522
defect
58d75942ef4fd17c4182ac44a681dd48cd0b3cf0
2ae03df4b4c93f73e55c04bee17ca1b0e510f007
Remove the skipBroker flag and change it to a useBroker flag
Remove the skipBroker flag and change it to a useBroker flag to make broker more obvious
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationSettings.java b/src/src/com/microsoft/aad/adal/AuthenticationSettings.java index f642d88ad..04364c582 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationSettings.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationSettings.java @@ -44,7 +44,11 @@ publ...
5
4
2
[{"id": "G0", "claim": "Put the @Deprecated annotation on its own line instead of on the same line as the mSkipBroker field declaration.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Existing callers of the deprecated getSkipBroker/setSkipBroke...
null
AzureAD__azure-activedirectory-library-for-android__531
AzureAD/azure-activedirectory-library-for-android
531
defect
8389de9497664b77a8554a974528d017e582d3d0
8ebbdbd4ea1e5555a1416062a1d16be04cb262d4
address comments left in PR 496 and update tests
For issue #530, address comments left in PR 496 1) support iterable<T> in ITokenCacheStore 2) For userId comparison, invert compare to simplify code. 3) nit: format, adding space for final String errorInfo = authResult == null ? "" : authResult.getErrorLogInfo();
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationContext.java b/src/src/com/microsoft/aad/adal/AuthenticationContext.java index 4c8cb4b3f..c9499ad92 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationContext.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationContext.java @@ -25,11 +25,9 @@ import ...
6
4
1
[{"id": "G0", "claim": "Nulls may appear in the Iterable<TokenCacheItem> returned by DefaultTokenCacheStore.getAll(), since the backing list is created with a fixed size and items are only added when decryption succeeds.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id":...
null
AzureAD__azure-activedirectory-library-for-android__532
AzureAD/azure-activedirectory-library-for-android
532
defect
8389de9497664b77a8554a974528d017e582d3d0
8910bfbd478a0b0cf455fbc22059a54c126a8868
clean up non-throwable exception
Some methods had throw in signature for exceptions that they don't throw them
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java index d7ed137e0..76fac9df1 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationActivity.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationActivity.java @@ -22,26 +22,14 @@ im...
1
1
0
[{"id": "G0", "claim": "The new TODO about replacing reflective KeyPairGeneratorSpec.Builder calls should be tracked in a filed issue.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__592
AzureAD/azure-activedirectory-library-for-android
592
defect
e6ae3a7ad4df5f05edf67c47d90fbd10bd2183a5
cf26049381b996fd9faab7299867eaee0487b3f3
Minor refactoring of RefreshItem, HttpWebResponse and HttpWebRequest classes
There is no functionality changes, but I think it adds readability to code: make private variable final when it initialized in constructor and won't be changed remove extra setters and getters separates function that refreshes token and updates cache extract logic that sets up http connection throw IO exception in send...
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationContext.java b/src/src/com/microsoft/aad/adal/AuthenticationContext.java index d7e233992..8e2e740c2 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationContext.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationContext.java @@ -1436,7 +1436,7 @@ priva...
28
17
3
[{"id": "G0", "claim": "In send(), the null check that returns a null HttpWebResponse is dead because setupConnection() throws IOException instead of returning null, so the check should be removed and failures surfaced as IOException.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "intr...
null
AzureAD__azure-activedirectory-library-for-android__629
AzureAD/azure-activedirectory-library-for-android
629
defect
5b26b26d90e996d8274e7dda0faa09583b4dedb2
1fd653b6f1d29fa23b326e3ba33ed3098b429c5e
add new flag in PromptBehavior to force prompt
for issue #628 : support the requireAuth scenario for MAM sdk.
diff --git a/src/src/com/microsoft/aad/adal/AuthenticationConstants.java b/src/src/com/microsoft/aad/adal/AuthenticationConstants.java index 5a940bf27..89c2aa421 100644 --- a/src/src/com/microsoft/aad/adal/AuthenticationConstants.java +++ b/src/src/com/microsoft/aad/adal/AuthenticationConstants.java @@ -212,6 +212,8 @@...
7
5
0
[{"id": "G0", "claim": "isBrokerWithPRTSupport should collapse its if/return-true/return-false body into a single return of the boolean expression.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider dropping the 'v' from BROKER_PROTOCOL_VER...
null
AzureAD__azure-activedirectory-library-for-android__634
AzureAD/azure-activedirectory-library-for-android
634
defect
274dbca9d9fede3add4eff117504fad380882621
d6d0b03a9eb61aa6a50ec18be1d0108b143112e3
update userMismatch check
only return user mismatch when user is passed in the request and it doesn't match either displayable and unique userid.
diff --git a/src/src/com/microsoft/aad/adal/TokenCacheAccessor.java b/src/src/com/microsoft/aad/adal/TokenCacheAccessor.java index 412764bba..a123f7bc6 100644 --- a/src/src/com/microsoft/aad/adal/TokenCacheAccessor.java +++ b/src/src/com/microsoft/aad/adal/TokenCacheAccessor.java @@ -273,18 +273,14 @@ private List<Stri...
2
1
1
[{"id": "G0", "claim": "The rewrite of isUserMisMatch dropped the earlier null check on tokenCacheItem.getUserInfo(), so the added comparison can dereference a null userInfo; add the check back.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The dou...
null
AzureAD__azure-activedirectory-library-for-android__666
AzureAD/azure-activedirectory-library-for-android
666
defect
dec76f4107ae84d55a317541ea80269e06561c95
86dde1f8f6ae065231e5d5c4fcd7ee0758417fa8
Add haschrome=1 as query parameter for requests sent to authorize endpoint.
#617 1. For mobile devices, there is already a physical back button, ADAL should send the query parameter haschrome=1 to hide the back button on AAD signin page thus developer will stop getting "access_denied" when it's actually user cancel the flow. 2. Update tests.
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java index 3a36a900c..53b9547ea 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java +++ b/adal/src/androidTest/java/com/microsoft/aad/adal/OauthTests.java...
6
4
0
[{"id": "G0", "claim": "setUp() sets the same dexmaker.dexcache property (and calls getContext().getCacheDir()) a second time, redundantly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "testGetTokenNullCode contains too many empty lines, which ...
null
AzureAD__azure-activedirectory-library-for-android__669
AzureAD/azure-activedirectory-library-for-android
669
defect
d0473087f323ea77c401f5d9ec2de62e55d9d510
f038e94b125f8096b737805a12c557b4d4914ce7
tests failed because failing to create raw cert data from the signature
The signature validation tests need to read all the raw certs. The tests only make sure the signature hash matches, which cause the test failings when creating X509 certs.
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/ADALErrorTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/ADALErrorTest.java index 33dec68d0..97ff08eb4 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/ADALErrorTest.java +++ b/adal/src/androidTest/java/com/microsoft/aad/adal/ADALEr...
2
2
0
[{"id": "G0", "claim": "The newly added constant in Util.java should be named in uppercase (Java constant-naming convention) instead of `encodedSignature`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the change removed the body that cou...
null
AzureAD__azure-activedirectory-library-for-android__693
AzureAD/azure-activedirectory-library-for-android
693
defect
ef107ce968a7d24197b535068453e058ee7f9f03
bd44fd8df6f1a7fe410758b4c3b3c636cbb62e6d
clear remaining warnings, and add suppressions
Clear the rest of the warning in #682. Suppress the PMD and findbugs if the warning doesn't make sense. Clear checkstyle warnings in HttpUrlConnectionFactory, also make corresponding changes in the tests. Clear those files that were marked as clean before.
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index 3b6fbdb1a..bb833e38a 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
2
2
0
[{"id": "G0", "claim": "The PR should not add the redundant import of the nested AAD class from its own package; a plain import of AuthenticationConstants.AAD would do.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two-line body of getAuthe...
null
AzureAD__azure-activedirectory-library-for-android__696
AzureAD/azure-activedirectory-library-for-android
696
defect
3663dfeb0e26eb1221b66d9b3ee3cbdb1ff15cdd
34d73ea2e0ff4012ed671144843012dcf59893e1
don't continue with rt request if the token cache item doesn't contain RT
#695 Outlook is seeing from the Nullpointer exception during silent request. To prevent app from crashing, we don't continue the silent request if the token cache item doesn't contain RT. Also, when reading the JSON response from server, we mark the flag isMRRT as true only when server returns resource as well as RT i...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java index bfa5dc4c1..5d0217282 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java +++ b/adal/sr...
1
1
0
[{"id": "G0", "claim": "Reuse the refreshToken local variable extracted at line 258 in the AuthenticationResult construction at line 288 instead of calling response.get(AuthenticationConstants.OAuth2.REFRESH_TOKEN) again there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
AzureAD__azure-activedirectory-library-for-android__699
AzureAD/azure-activedirectory-library-for-android
699
defect
cce7f7491b1a791ffc33c6c521a4b6ea7a74aa10
334b65a67a00e5fdb8a350d5a5917ebf41937227
manual merge PR 696 from dev to service branch
manual merge PR 696 from dev to servicing branch. For issue 695: outlook is seeing empty refresh token stored in token cache item, it's only in outlook dogfood build, no user report yet, there isn't too much diagnostic info to tell the root cause. The fix is to prevent outlook from crashing in this case.
diff --git a/src/src/com/microsoft/aad/adal/AcquireTokenSilentHandler.java b/src/src/com/microsoft/aad/adal/AcquireTokenSilentHandler.java index be485baa4..0d47d8ae3 100644 --- a/src/src/com/microsoft/aad/adal/AcquireTokenSilentHandler.java +++ b/src/src/com/microsoft/aad/adal/AcquireTokenSilentHandler.java @@ -266,6 +...
1
1
0
[{"id": "G0", "claim": "The lines added to testprocessUIResponseParams use tab characters for indentation instead of spaces.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__775
AzureAD/azure-activedirectory-library-for-android
775
defect
6d405a2ae64d239c5e9d5f3851321484317bf609
cf3ce323aafe168affd66ffe102325daa613fa1d
Fix for issue #746
Fix for issue #746 - add the null check for getStaleToken() - add the corresponding unit test
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index a5ddad23d..85891cf5a 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
1
1
0
[{"id": "G0", "claim": "Fix the misspelling \"exeption\" in the new test's fail message.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__783
AzureAD/azure-activedirectory-library-for-android
783
defect
191ab3b7bf04a56e37795b31e027c1a392ce5dc7
36362b6df2aef84bf0e3022b9e8c5a23875e074a
Return DEVICE_CONNECTION_IS_NOT_AVAILABLE error when no network and uses Broker flow
Ref #707 The aim of this PR is to return the ADALError.DEVICE_CONNECTION_IS_NOT_AVAILABLE instead of AUTH_REFRESH_FAILED_PROMPT_NOT_ALLOWED when a silentAuth with PRT in broker is called while no network connection available. - get the exception error message from broker and throw the AuthenticationException if the ...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java index b168f139e..553e4f5de 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java +++ b/adal/src/androidTest/java/com/microsoft/aad/ad...
1
1
1
[{"id": "G0", "claim": "Calling HttpWebRequest.throwIfNetworkNotAvaliable before the broker's acquireTokenSilently means the access token lookup is still skipped even when the cached token is still valid.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__785
AzureAD/azure-activedirectory-library-for-android
785
defect
563709a4af0fa3216c11d3fe5408aeff3e69af93
8ee9ca16fe79a36e971773a580489154ce3a7a54
Fix for the no_network unit test
Fix for the test testGetAuthTokenInBackgroundVerifyErrorNoNetworkConnection()
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java index 553e4f5de..daff9958a 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/BrokerProxyTests.java +++ b/adal/src/androidTest/java/com/microsoft/aad/ad...
1
1
0
[{"id": "G0", "claim": "Also add a null check (e.getMessage() != null) at the place where the crash occurred, i.e. the AuthenticatorException handler in BrokerProxy.java that dereferences e.getMessage().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
AzureAD__azure-activedirectory-library-for-android__801
AzureAD/azure-activedirectory-library-for-android
801
defect
57a3c18d8f7cc9e76b724a05d08d642d1f07e2ed
cc9078ba4772f5942c2b3804b672122133b63bab
Fix for handling the permission missing scenario when silent auth is called directly
Fix for handling the permission missing scenario when performing an acquireTokenSilent call. 1. there is a bug that we never check if permissions are granted to use broker when calling acquireTokenSilent directly. Because we assume it will alway do the interactive first where the permission checking is performed. Howe...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index f6cecf04e..bd4c3be37 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
5
3
0
[{"id": "G0", "claim": "acquireTokenSilentFlow appears to check broker permissions a second time even though the NEED_PERMISSIONS_TO_SWITCH_TO_BROKER branch above already throws the permission-missing error, so the second check looks redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
AzureAD__azure-activedirectory-library-for-android__802
AzureAD/azure-activedirectory-library-for-android
802
defect
44d368d4707cabdfab3f79911e9ffc7f2bb6619a
4857d8aa18b590e4d7d6bc75df49569a8dc63a6e
Expand Resiliency Error Codes to all 5xx Status Codes
ISSUE #772 - expand resiliency error codes to all 5xx status codes. - correpsonding change on the unit tests in AcquireTokenRequestTest.java
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index f6cecf04e..c21936751 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
2
1
0
[{"id": "G0", "claim": "A comment should be added to Oauth2.java explaining why the resiliency logic is being changed to retry all 5xx status codes.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MAX_RESILIENCY_ERROR_CODE should be set to 599 and ...
null
AzureAD__azure-activedirectory-library-for-android__842
AzureAD/azure-activedirectory-library-for-android
842
defect
1281b96ee43d62e8b87e0387ad6827f082d0e168
c9bf2fccf38b5ef446cd577ca17dc729cc658eee
Make sure we have no args constructor to prevent usage of unsafe
@addev-ashish Closes #839.
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/WebRequestHandlerTests.java b/adal/src/androidTest/java/com/microsoft/aad/adal/WebRequestHandlerTests.java index ace46b15e..d661189b2 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/WebRequestHandlerTests.java +++ b/adal/src/androidTest/java/co...
1
1
1
[{"id": "G0", "claim": "Make the no-arg constructors private - all of them, starting with TestMessage in WebRequestHandlerTests.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__869
AzureAD/azure-activedirectory-library-for-android
869
defect
031fc5dbc8cc4b357fc9d487b9451ff92d66333e
bb3263998378dc29dabfd412dcdb2dd2d9e2f5d5
Removes dead code related to onReceive()
See #868 Please note: commit bb3263998378dc29dabfd412dcdb2dd2d9e2f5d5 preserves public methods and variables exposed by ApplicationReceiver. ~~Changes outside of this will require a major version change.~~
diff --git a/adal/src/main/java/com/microsoft/aad/adal/ApplicationReceiver.java b/adal/src/main/java/com/microsoft/aad/adal/ApplicationReceiver.java index 1cd97f4db..8f6c3208d 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/ApplicationReceiver.java +++ b/adal/src/main/java/com/microsoft/aad/adal/ApplicationRecei...
2
2
1
[{"id": "G0", "claim": "The entire ApplicationReceiver.java file should be deleted rather than only its dead onReceive() code being gutted.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The dead BrokerResumeResultReceiver code at AcquireTokenRe...
null
AzureAD__azure-activedirectory-library-for-android__88
AzureAD/azure-activedirectory-library-for-android
88
defect
3117f1a62efeb50bef9da7b097bda03db7e342d6
43515b97f1b060522ca92b0a3fe762738d3a8783
Dev broker flow integrate
Integrate brokerProxy class to authenticationContext Add tests merge to dev remove extra headers fix tests
diff --git a/adal/src/com/microsoft/adal/ADALError.java b/adal/src/com/microsoft/adal/ADALError.java index b62f9658b..87ea49ff5 100644 --- a/adal/src/com/microsoft/adal/ADALError.java +++ b/adal/src/com/microsoft/adal/ADALError.java @@ -121,8 +121,7 @@ public enum ADALError { CORRELATION_ID_FORMAT("Correlationid...
12
10
0
[{"id": "G0", "claim": "The new ADALError messages duplicate the word \"request\" (e.g. \"Invalid request parameters in request\") and should not.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new SIGNATURE constant in AuthenticationConstan...
null
AzureAD__azure-activedirectory-library-for-android__880
AzureAD/azure-activedirectory-library-for-android
880
defect
8ac11485d1936f611073f9f7bd7159645bbc3124
aba3558e825c95f1b803a5f78555d7a344c05efd
add claims challenge support
Claims challenge could be returned from middle tier service if it's doing downstream obo. Adal needs to update to 1) add new overloads to take in the claims challenge 2) skip cache lookup. 3) send passed in claims challenge to authorize endpoint
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index a29d8dbcc..3c6806d0d 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
2
1
0
[{"id": "G0", "claim": "The API-events-per-request number used for the new acquireToken overload should be updated in the telemetry documentation if not already done.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two consecutive claims-challe...
null
AzureAD__azure-activedirectory-library-for-android__931
AzureAD/azure-activedirectory-library-for-android
931
defect
c465e86f875434e1ac2ea633e20ae73d8b529cfc
56f9d4ef26847c9179398d4ace5844f7b07636c9
UT migration, deprecating InstrumentationTestCase
This is the update on all subclass of InstrumentationTestCase as part of https://identitydivision.visualstudio.com/DevEx/Android/_workitems?id=264686 . This PR touched 19 files. I've ran them all before sending out the PR, all test passed.
diff --git a/README.md b/README.md index d59ce7437..860a42ff2 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ mContext.acquireTokenSilent(String resource, String clientId, String userId, fin * If target version is lower than 23, calling app has to have the following permissions declared in manifest(http://...
1
1
0
[{"id": "G0", "claim": "The README typo fix (MANAGE_ACOUNTS -> MANAGE_ACCOUNTS) is an unrelated change that should not be part of this PR; make it later when fixing issue #898.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__azure-activedirectory-library-for-android__938
AzureAD/azure-activedirectory-library-for-android
938
defect
9c7007f18b8de1b1cd7f306b9e5697be8856e2b2
6fca0a863a7f693a7a63b2d7ab5e05e82e9f6705
UT migration, deprecating ActivityUnitTestCase
UT migration, deprecating ActivityUnitTestCase. Part of the UT method migration https://identitydivision.visualstudio.com/DevEx/Android/_workitems?id=264686 .
diff --git a/adal/build.gradle b/adal/build.gradle index dd16dc1ca..953d41b89 100644 --- a/adal/build.gradle +++ b/adal/build.gradle @@ -14,6 +14,15 @@ configurations { javadocDeps } +allprojects { + repositories { + jcenter() + maven { + url "https://maven.google.com" + } + ...
2
1
0
[{"id": "G0", "claim": "The mActivityRule field should be declared final and use the diamond operator (new ActivityTestRule<>(...)) to also suppress the raw-type constructor warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copy/paste-...
null
AzureAD__azure-activedirectory-library-for-android__955
AzureAD/azure-activedirectory-library-for-android
955
defect
46e66ed6681f54f141026f4f829803c19bd6f898
c2d5225ac5d3ebe1df2985bc825f9b1557127acc
Adds Tracking of SPE Ring to HttpEvent
This PR adds support for tracking the `SPE Ring` to Telemetry via new parsing/setters on `HttpEvent`, and minor modifications to `OAuth2`
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java index fc4c8da32..4767ae41f 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java +++ b/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEv...
9
8
3
[{"id": "G0", "claim": "The parser should validate that a v1 x-ms-clitelem header contains exactly the N (5) elements the version requires, discarding data otherwise, so both platforms agree on strictness.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
AzureAD__azure-activedirectory-library-for-android__956
AzureAD/azure-activedirectory-library-for-android
956
defect
25ca148c2cd6e41cde2acaa1455e6489d33ffb9a
9d31e910ba5e3f68f7288bd50400cff271c32418
Authority migration: authority validation threading update and extend validation cache to store metadata
Please make sure every Pull Request has the following information: <ul> <li>https://github.com/AzureAD/azure-activedirectory-library-for-android/issues/913</li> <li>1) extend authority validation cache to store metada 2) update threading handling for authority validation </li> </ul>
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java index 209b81c18..2953fd768 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenRequestTest.java +++ b/adal/src/androidTest/java...
11
9
3
[{"id": "G0", "claim": "The test's setUp() override lacks an @Override annotation, and the reviewer questions whether the override is needed at all since it only calls super.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PREFERRED_NETWORK, PR...
null
AzureAD__azure-activedirectory-library-for-android__957
AzureAD/azure-activedirectory-library-for-android
957
defect
d9526c9a13027ff5ed267d55bf20cce18fd62808
46eb07245e0006ccb8d64d8a106c64403ee0cf56
Adds support for silent auth to SPE Ring Telemetry
Extension of #955 to add support for silent scenarios. This change adds in a new intermediate object to separate parsing logic from `HttpEvent` as this data is now shared with `CacheEvent`. The parsing has been extracted to a `TelemetryUtils` class; the parsed data is stored in instances of `TelemetryUtils.CliTelemI...
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java index 39fd002cf..80fe64854 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEventTest.java +++ b/adal/src/androidTest/java/com/microsoft/aad/adal/HttpEv...
4
1
0
[{"id": "G0", "claim": "The reviewer asks whether CacheEvent should report an empty SPE ring instead of omitting SPE_INFO when no SPE ring value is present.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "HttpEvent.setServerErrorCode redundantly re-checks...
null
AzureAD__azure-activedirectory-library-for-android__959
AzureAD/azure-activedirectory-library-for-android
959
defect
902bfbdb3cad1d13a83f3c3f06b2c7c3069e99ec
c2fb0f997017559ee004f44213cd929230edc12c
authority validation update cache
Please make sure every Pull Request has the following information: <ul> <li>#913</li> <li>Cache update for authority migration. New token will always be written into the preferred cache location; For read, try preferred_cache first, followed by provided authority and aliased authority. </li> </ul>
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java index fc071fb51..61fba702f 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AcquireTokenSilentHandlerTest.java +++ b/adal/sr...
3
1
0
[{"id": "G0", "claim": "The AuthorityValidationMetadataCache.clearAuthorityValidationCache() calls in the new DiscoveryTests should be hoisted into the setUp() function instead of being repeated at the top of each test.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {...
null
AzureAD__azure-activedirectory-library-for-android__977
AzureAD/azure-activedirectory-library-for-android
977
defect
ac1af2cf175bb8330d0eebe9902ed593b9f4cdd2
7cd1fddd0c463d13455578fde32c94ddc1f0bb9b
foci serialize API update for authority migration update
Please make sure every Pull Request has the following information: <ul> <li>#913</li> <li>update serialize api, use tokenCacheAccessor which contains the cache fallback logic</li> </ul>
diff --git a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java b/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java index c4f61f1c3..874c42632 100644 --- a/adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java +++ b/adal/src/androidTes...
2
1
0
[{"id": "G0", "claim": "The FingerprintManagerCompat import added to AuthenticationContextTest.java is unused and should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hand-concatenated JSON response strings in Util.java should b...
null
AzureAD__azure-activedirectory-library-for-android__986
AzureAD/azure-activedirectory-library-for-android
986
defect
8678e796786496785112c88f8ad76112f74be4b2
53245098cd40f8ddc38ca74d8c1e5bfbc3094846
Add network checking when hitting the network in authority validation| Fix 985
Fix for #985 As there is a network request happening during authority validation, we should check the network when calling performInstanceDiscovery(). If there is no network, it is expected to return DEVICE_INTERNET_IS_NOT_AVAILABLE or NO_NETWORK_CONNECTION_POWER_OPTIMIZATION if the device is in doze mode. In thi...
diff --git a/adal/src/main/java/com/microsoft/aad/adal/AcquireTokenRequest.java b/adal/src/main/java/com/microsoft/aad/adal/AcquireTokenRequest.java index dc4fa09fe..deb4e24b4 100644 --- a/adal/src/main/java/com/microsoft/aad/adal/AcquireTokenRequest.java +++ b/adal/src/main/java/com/microsoft/aad/adal/AcquireTokenRequ...
1
1
1
[{"id": "G0", "claim": "The network-connection check should be moved out of AcquireTokenRequest into Discovery#performInstanceDiscovery, with the Context supplied to Discovery's constructor rather than used at the call site.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
AzureAD__microsoft-authentication-library-for-js__3058
AzureAD/microsoft-authentication-library-for-js
3,058
defect
cca28f4e40e8f0d873401f186219174074354faa
ad52be8473af3cc503be3a9de0e15a3bc6bfb358
Add SignedHttpRequest class
Adds a `SignedHttpRequest` class to MSAL Browser, which enables applications to create a signed http requests for tokens that are acquired out-of-band from MSAL.js.
diff --git a/lib/msal-browser/src/crypto/TokenBinding.ts b/lib/msal-browser/src/crypto/TokenBinding.ts new file mode 100644 index 0000000000..28c9e43b5c --- /dev/null +++ b/lib/msal-browser/src/crypto/TokenBinding.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under t...
3
1
0
[{"id": "G0", "claim": "The pop-specific functions should be removed from `CryptoOps` into a class specifically built for pop (e.g. a `BrowserPopTokenGenerator`), since that business logic is orthogonal from the other crypto operations.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introdu...
null
AzureAD__microsoft-authentication-library-for-js__3729
AzureAD/microsoft-authentication-library-for-js
3,729
defect
319600946963c68d1bd8f6f001f05c3637213cfc
bbec6996e43ecad6b93a3c9574829bbbbaba06a3
MsalInterceptor relative url fix
This PR addresses issue #3682 by ensuring that the `MsalInterceptor` includes the domain when matching relative endpoints.
diff --git a/change/@azure-msal-angular-91da29ed-dc20-4570-8892-43105230c608.json b/change/@azure-msal-angular-91da29ed-dc20-4570-8892-43105230c608.json new file mode 100644 index 0000000000..d7dfd2e5eb --- /dev/null +++ b/change/@azure-msal-angular-91da29ed-dc20-4570-8892-43105230c608.json @@ -0,0 +1,7 @@ +{ + "type"...
2
2
1
[{"id": "G0", "claim": "The relative-URL matching logic inside matchResourcesToEndpoint should be factored out into a helper function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The interceptor uses the global document object in getAbsoluteUrl; in An...
null
AzureAD__microsoft-authentication-library-for-js__4391
AzureAD/microsoft-authentication-library-for-js
4,391
defect
29c1358d0b52b3140bc44d9224eaaeffac30a7ed
8398fcc1c243b1977f7b9eac883e7b1f1c8289ab
Node testing mock overhaul
This PR makes the following changes to msal-node testing:-- TestFixtures.ts : Common mocks for usage , ex: Authority Factory, Telemetry Manager, etc. For Client test classes:- -Removes jest.mock("@azure/msal-common") -Uses mock Authority & AuthorityFactory-createDiscoveredInstance's mock from 'test-fixtures.ts...
diff --git a/lib/msal-node/test/cache/Storage.spec.ts b/lib/msal-node/test/cache/Storage.spec.ts index d46526533c..4e2471c1bf 100644 --- a/lib/msal-node/test/cache/Storage.spec.ts +++ b/lib/msal-node/test/cache/Storage.spec.ts @@ -1,9 +1,11 @@ -import { LogLevel, Logger, AccountEntity, CacheManager, AccessTokenEntity, ...
9
9
0
[{"id": "G0", "claim": "Remove the unused \"hasUncaughtExceptionCaptureCallback\" import from process in Storage.spec.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the leftover debug code in Storage.spec.ts: the key-format comment li...
null
AzureAD__microsoft-authentication-library-for-js__4450
AzureAD/microsoft-authentication-library-for-js
4,450
defect
ee8153f78112fbf51770d9db8093191e5ab02a4c
1cf1af9fc8651196fc0518c0819830ab72727eb4
[msal-browser] Add support for logout_hint
This PR: - Adds `logoutHint` attribute to `CommonEndSessionRequest` type - Adds logic in `StandardInteractionClient.initializeLogoutRequest` to parse `login_hint` from ID token claims in the account (if) passed in and set it as `logout_hint` in the end session request - Adds `addLogoutHint` API to `RequestParameterB...
diff --git a/lib/msal-browser/src/interaction_client/StandardInteractionClient.ts b/lib/msal-browser/src/interaction_client/StandardInteractionClient.ts index 031d109803..7aee1245d9 100644 --- a/lib/msal-browser/src/interaction_client/StandardInteractionClient.ts +++ b/lib/msal-browser/src/interaction_client/StandardIn...
3
1
1
[{"id": "G0", "claim": "The logout_hint should be parsed from the login_hint ID token claim rather than preferred_username, since preferred_username is a new optional claim that must be enabled by the app first.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", ...
null
AzureAD__microsoft-authentication-library-for-js__5010
AzureAD/microsoft-authentication-library-for-js
5,010
defect
d14257041d7f7a7f3e154771b7b875ae04268dce
f3cbdaf4d3454ba1da22ddc4229dc16782dcefc8
Node-token-validation handle network errors
This PR adds network error handling to `HttpClient`, allowing 2 retries when response returned indicates request timeout or service unavailable. Note: Additional changes will be made to `HttpClient` in the future to handle proxy requests, which will not be included in this PR.
diff --git a/change/@azure-node-token-validation-8fa4970e-a979-4212-a0fb-170778202ab0.json b/change/@azure-node-token-validation-8fa4970e-a979-4212-a0fb-170778202ab0.json new file mode 100644 index 0000000000..1e50c059be --- /dev/null +++ b/change/@azure-node-token-validation-8fa4970e-a979-4212-a0fb-170778202ab0.json @...
2
1
0
[{"id": "G0", "claim": "Making the maximum number of network/retry attempts configurable would be a change for a future PR.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "More documentation is needed on the HTTP status code constants, stating which failu...
null
AzureAD__microsoft-authentication-library-for-js__5233
AzureAD/microsoft-authentication-library-for-js
5,233
defect
8400c8b4372133fb5da411150e2a3baf48baed38
879f28f34d9ef540f5e0569bf13c4055b333c876
Extend msal-browser TokenCache loadExternalTokens to load refresh tokens
This change extends the `TokenCache.loadExternalTokens` method to support loading refresh tokens. It also makes a few small changes in `TokenCache` to make it easier to use this functionality from an application: - `TokenCache.loadExternalTokens` now returns a `AuthenticationResult` for the response that was loaded. T...
diff --git a/lib/msal-browser/src/cache/ITokenCache.ts b/lib/msal-browser/src/cache/ITokenCache.ts index 5b20b55820..4c8c2da767 100644 --- a/lib/msal-browser/src/cache/ITokenCache.ts +++ b/lib/msal-browser/src/cache/ITokenCache.ts @@ -9,6 +9,10 @@ import { LoadTokenOptions } from "./TokenCache"; export interface ITo...
2
2
1
[{"id": "G0", "claim": "loadExternalTokens should return an object such as CacheRecord — with homeAccountId among its properties, built by having the token-loading helpers return their entities — rather than returning a bare idTokenHomeAccountId string.", "category": "design", "verdict": "supported", "priority": "P1", ...
null
AzureAD__microsoft-authentication-library-for-js__5448
AzureAD/microsoft-authentication-library-for-js
5,448
defect
fd1ef52d306e8e2e50fbd2655b92bb9d6359f35e
49ef41eb66072e1e10ce5fbd36ec5ba67c8c4cde
Cloud Instance Discovery Improvement
In the event of a successful network request to "getCloudDiscoveryMetadataFromNetwork" but there is no metadata, only return null if the response's error message is "invalid_instance". This makes MSALJS's cloud instance discovery more consistent with MSAL.NET
diff --git a/change/@azure-msal-common-9e2f8311-2ae7-495d-b493-b48461ee7a28.json b/change/@azure-msal-common-9e2f8311-2ae7-495d-b493-b48461ee7a28.json new file mode 100644 index 0000000000..62f98f51d2 --- /dev/null +++ b/change/@azure-msal-common-9e2f8311-2ae7-495d-b493-b48461ee7a28.json @@ -0,0 +1,7 @@ +{ + "type": "...
7
6
3
[{"id": "G0", "claim": "The cloud instance discovery response-handling block needs more logging — including logging why null is returned — so the scenarios in this code are explainable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log the erro...
null
AzureAD__microsoft-authentication-library-for-js__5614
AzureAD/microsoft-authentication-library-for-js
5,614
defect
58e57222cfde9ccd20dd839785f09bb4a07c3a06
ffa6297d6ba12b54f2c5aed84278c261a13d838c
Track manually completed sub-measurements
- Track manually completed sub-measurements. - Add unit tests.
diff --git a/change/@azure-msal-common-039bdada-b563-4341-8dcf-d61e014ec27d.json b/change/@azure-msal-common-039bdada-b563-4341-8dcf-d61e014ec27d.json new file mode 100644 index 0000000000..499e270ed4 --- /dev/null +++ b/change/@azure-msal-common-039bdada-b563-4341-8dcf-d61e014ec27d.json @@ -0,0 +1,7 @@ +{ + "type": "...
2
2
1
[{"id": "G0", "claim": "Add a telemetry datapoint indicating whether a given call had incomplete (manually completed) sub-measurements, so their prevalence can be observed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The spec should import IPerformanc...
null
AzureAD__microsoft-authentication-library-for-js__6499
AzureAD/microsoft-authentication-library-for-js
6,499
defect
0cad734bb8ded0a17c9eeedfd8d25c7717bbf6a7
82df3eeba855deff4bc34a3faf463234ca570f39
Add getAccount and enhance account filtering
This PR: - Adds and `accountFilter: AccountFilter` param to `getAllAccounts()` in order to enable the narrowing-down of cached accounts returned - Adds `getAccountByFilter` API to replace now marked-for-deprecation `getAccountBy` APIs - Extends `AccountFilter` class to optionally include all the properties in `Accou...
diff --git a/lib/msal-browser/docs/accounts.md b/lib/msal-browser/docs/accounts.md index 122190f343..a2b9433852 100644 --- a/lib/msal-browser/docs/accounts.md +++ b/lib/msal-browser/docs/accounts.md @@ -6,10 +6,32 @@ The `@azure/msal-browser` library provides the following APIs to access cached accounts: -* `getAl...
13
10
1
[{"id": "G0", "claim": "The docs should reference the typedocs for the AccountFilter object instead of writing the property table out by hand, to reduce maintenance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation cites @azure/m...
null
AzureAD__microsoft-authentication-library-for-js__7001
AzureAD/microsoft-authentication-library-for-js
7,001
defect
4848823559291842bacb5b05d5385c58af50a3ff
06a2f5b88f95df8d6aba32779aa76bce2f21bc2a
MSAL-Node NetworkModule: Fixed inconsistencies with cancellationToken (timeout)
- renamed cancellationToken to timeout - it can only be used in get requests (region discovery, for example) - it's not part of the public api
diff --git a/lib/msal-common/src/network/INetworkModule.ts b/lib/msal-common/src/network/INetworkModule.ts index 3c9afe4dd6..15254ade3f 100644 --- a/lib/msal-common/src/network/INetworkModule.ts +++ b/lib/msal-common/src/network/INetworkModule.ts @@ -31,7 +31,7 @@ export interface INetworkModule { sendGetRequestAs...
2
1
1
[{"id": "G1", "claim": "The reviewer asks that the effect of the new timeout parameter on managed identity (MSI) calls, which use GET requests, be evaluated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The reviewer asks that a deprecation comment...
null
AzureAD__microsoft-authentication-library-for-js__7088
AzureAD/microsoft-authentication-library-for-js
7,088
defect
8ba150d15e17c27269156c2db3fdef72f90e5301
56711bf41cff5ba6d6327d8d0d0907aab8ff7b13
Fixed bug where dev-provided certificate was not being attached to client assertion
Fixes [acquireTokenByClientCredential broken for clientCertificate #7082](https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/7082) Applied boy-scout-rule to `ConfidentialClientApplication.spec.ts` (contains unit tests). I've been waiting for a good opportunity to do this. The ConfidentialClien...
diff --git a/change/@azure-msal-node-c008b934-0e82-4434-934d-285baed36417.json b/change/@azure-msal-node-c008b934-0e82-4434-934d-285baed36417.json new file mode 100644 index 0000000000..446eb28860 --- /dev/null +++ b/change/@azure-msal-node-c008b934-0e82-4434-934d-285baed36417.json @@ -0,0 +1,7 @@ +{ + "type": "patch"...
2
2
0
[{"id": "G0", "claim": "The default test configuration built by createTestConfidentialClientConfiguration should not use a client secret; a client certificate, being more secure, should be the default.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
AzureAD__microsoft-authentication-library-for-js__7182
AzureAD/microsoft-authentication-library-for-js
7,182
defect
be05b0571b240c9053ea84dff5551bbce5d1f05b
d84ae4a1264e5819ddb31e68ec68185e10e283c1
Track MSAL SKU for broker flows
- Track MSAL SKU for broker flows - Enable server telemetry platform fields propagation - Propagate broker error to server telemetry
diff --git a/change/@azure-msal-browser-61afe86b-a787-4083-96f1-b8c531de0bee.json b/change/@azure-msal-browser-61afe86b-a787-4083-96f1-b8c531de0bee.json new file mode 100644 index 0000000000..3dd4a9d267 --- /dev/null +++ b/change/@azure-msal-browser-61afe86b-a787-4083-96f1-b8c531de0bee.json @@ -0,0 +1,7 @@ +{ + "type"...
7
4
2
[{"id": "G0", "claim": "StandardController should not hand-build broker-error telemetry into silentRequest.tokenQueryParameters; anything related to sending server telemetry should go through ServerTelemetryManager, since tokenQueryParameters/extraQueryParameters are meant to be opaque to the library.", "category": "de...
null
AzureAD__microsoft-authentication-library-for-js__7218
AzureAD/microsoft-authentication-library-for-js
7,218
defect
cba1fe0a48b29f0ac7c6b60a07d7f9f524b92839
ec90204d58e7bfca4cca759ab962ff588dc0a83a
Retry for invalid_grant errors - Silent Iframe
First of 3 PRs addressing need for retry for backup auth service.
diff --git a/change/@azure-msal-browser-0a4d9ab0-d163-4a04-a309-cdb0ffb0b18b.json b/change/@azure-msal-browser-0a4d9ab0-d163-4a04-a309-cdb0ffb0b18b.json new file mode 100644 index 0000000000..52373234ea --- /dev/null +++ b/change/@azure-msal-browser-0a4d9ab0-d163-4a04-a309-cdb0ffb0b18b.json @@ -0,0 +1,7 @@ +{ + "type"...
5
4
0
[{"id": "G0", "claim": "The new retry tests should use jest mocks instead of sinon.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of mocking AuthorizationCodeClient.getAuthCodeUrl, the tests should mock the POST request for better cover...
null
AzureAD__microsoft-authentication-library-for-js__7363
AzureAD/microsoft-authentication-library-for-js
7,363
defect
367915c86375e27d7aad8ecf777d2c0573a25b58
b496d5152ecd4d41f49e8d70ae65044be9104d48
Cache fixes for NAA flow
This PR should respect cache policy if set on the request and add tests for cache pull NAA requests
diff --git a/change/@azure-msal-browser-037431c8-489b-4264-887d-fa6930b1b941.json b/change/@azure-msal-browser-037431c8-489b-4264-887d-fa6930b1b941.json new file mode 100644 index 0000000000..03d6301a86 --- /dev/null +++ b/change/@azure-msal-browser-037431c8-489b-4264-887d-fa6930b1b941.json @@ -0,0 +1,7 @@ +{ + "type"...
3
3
2
[{"id": "G0", "claim": "Deleting the expired-token cache cleanup leaves expired access tokens in cache, and removal should target only the specific expired token via a better cleaning API (deferred to a separate PR).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
AzureAD__microsoft-authentication-library-for-js__7368
AzureAD/microsoft-authentication-library-for-js
7,368
defect
5879cf36cfd1d4ec0b044e548f74656c1dde092a
00415fa5c0c551caf22474a35dee7761ba84d005
Converted Certificate Sample to TypeScript
This is the first time we'll have an E2E test running on a TypeScript sample. They all currently run on JS samples.
diff --git a/package-lock.json b/package-lock.json index 9ec92017de..d2605451c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2390,8 +2390,9 @@ } }, "node_modules/@azure/core-auth": { - "version": "1.7.2", - "license": "MIT", + "version": "1.8...
3
3
1
[{"id": "G0", "claim": "Do not use a flat plaintext file as the cache plugin for a confidential client in the new sample (M001: it is not an appropriate cache location for service tokens, in-memory cache should be used; M003: do not use flat cache in a confidential client).", "category": "security", "verdict": "support...
null
AzureAD__microsoft-authentication-library-for-js__7544
AzureAD/microsoft-authentication-library-for-js
7,544
defect
ce193af8b04d6db8aa7794884cf52f95d13b6ce6
b3ad045645ab4ca3de2b88e120af575e9f6f0837
ManagedIdentityTokenResponse's expires_in can now be accepted in ISO 8601 date format
Fixes #7393
diff --git a/change/@azure-msal-common-d8f79db0-1da7-4d44-9e4d-aba8b83ead3c.json b/change/@azure-msal-common-d8f79db0-1da7-4d44-9e4d-aba8b83ead3c.json new file mode 100644 index 0000000000..eb1aa7cd05 --- /dev/null +++ b/change/@azure-msal-common-d8f79db0-1da7-4d44-9e4d-aba8b83ead3c.json @@ -0,0 +1,7 @@ +{ + "type": "...
4
3
0
[{"id": "G0", "claim": "Move the isIso8601 helper out of msal-common into msal-node for simplicity.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the strange multi-line parenthesised if-condition with a plain one-line condition.", "category": "m...
null
AzureAD__microsoft-authentication-library-for-js__7549
AzureAD/microsoft-authentication-library-for-js
7,549
defect
6bbcbb864dceb7ea1a4e817a4d75aa6cdde1527a
1192460ecac51fb2951d9259c54f6fe18e0ad19b
localStorage encryption cookie set SameSite=None
Cookies aren't being set/can't be accessed in iframed apps without SameSite=None, breaking localStorage usage. This PR sets the needed attributes to support embedding
diff --git a/change/@azure-msal-browser-1dde9e39-4138-48c1-b13d-55e395dd1c11.json b/change/@azure-msal-browser-1dde9e39-4138-48c1-b13d-55e395dd1c11.json new file mode 100644 index 0000000000..be21867e7e --- /dev/null +++ b/change/@azure-msal-browser-1dde9e39-4138-48c1-b13d-55e395dd1c11.json @@ -0,0 +1,7 @@ +{ + "type"...
1
1
0
[{"id": "G0", "claim": "The change file comment should include the PR number, i.e. read \"Set SameSite=None on localStorage encryption cookie #7549\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
AzureAD__microsoft-authentication-library-for-js__7595
AzureAD/microsoft-authentication-library-for-js
7,595
defect
83050296cbaac7642c32e750b443397f76535aa5
aeeda3b0c94e4afd6c1eff1c7539c8a7b7037678
Support get access token and token renewal
This PR is to add support for getting an access token in the `msal-custom-auth` library. Why: 1. After the user complete sign in process, the user could use `getAccessToken` to acquire token. 2. When acquiring token, the flow will look like below: 1. Look up browser cache to see if there is any cached access...
diff --git a/lib/msal-browser/src/index.ts b/lib/msal-browser/src/index.ts index 5330998425..234a3fd4b5 100644 --- a/lib/msal-browser/src/index.ts +++ b/lib/msal-browser/src/index.ts @@ -87,6 +87,9 @@ export { LocalStorage } from "./cache/LocalStorage.js"; export { SessionStorage } from "./cache/SessionStorage.js"; e...
14
13
5
[{"id": "G0", "claim": "The catch block in CustomAuthSilentCacheClient.getAccessToken checks the wrong or unclear token error codes (refreshTokenExpired where accessTokenExpired might be expected) and performs no refresh-token validation, so it is unclear which failure a caught error represents.", "category": "correctn...
null
AzureAD__microsoft-authentication-library-for-python__143
AzureAD/microsoft-authentication-library-for-python
143
defect
2a3e1c4b58b97324a171da0b51b697f514ccdbdc
aeb11dd661c6c999583f13c82d5ac507d28a1662
New method acquire_token_silent_with_error()
In an effort to address #57 , we need to expose some of the underlying token refreshing errors to app developer. After weighing different options (such as extending the existing `acquire_token_silent()` method with different style of opt-in flag: boolean, container, callback, ..., you name it), we chose to keep the ori...
diff --git a/msal/application.py b/msal/application.py index 593d957d..9b72affb 100644 --- a/msal/application.py +++ b/msal/application.py @@ -431,10 +431,40 @@ def acquire_token_silent( **kwargs): """Acquire an access token for given account, without user interaction. + It behaves same a...
1
1
0
[{"id": "G0", "claim": "Apply the changes suggested offline (suggested few changes but open to discuss).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
AzureAD__microsoft-authentication-library-for-python__16
AzureAD/microsoft-authentication-library-for-python
16
defect
17948c1d6415eb2049ba0e99785ed9d803cd1142
5e48dca3c45df58ffd24af2fcbc56e321e916c86
Assertion in bytes in python3
This PR is a superset of existing PR #11. ~The major part is equivalent, but here it is done the otherway around, i.e. `b"." in data_in_bytes` rather than `"." in data_in_bytes.decode()`. This way we deal with `bytes` directly, and save an ad-hoc type conversion. (On a side note, another alternative is to normalize ...
diff --git a/msal/application.py b/msal/application.py index 7ddadde1..93140263 100644 --- a/msal/application.py +++ b/msal/application.py @@ -4,7 +4,7 @@ except: # Python 3 from urllib.parse import urljoin import logging -from base64 import b64encode +from base64 import urlsafe_b64encode import sys from .o...
1
1
0
[{"id": "G0", "claim": "Use `rstrip` instead of `strip` to drop base64 `=` padding, since `=` only appears as trailing padding, and update the similar encoding code further down if that is correct.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
AzureAD__microsoft-authentication-library-for-python__169
AzureAD/microsoft-authentication-library-for-python
169
defect
6cf50a6056d8410e589dee659e60e36ce0db41f5
cb70a37cb99f4ffbe3b0958cda0a2a9f689e013c
Allowing transport layer to be customized
Separating everything related to requests to http module. Lot of changes around that. I can walk through all the changes.
diff --git a/msal/application.py b/msal/application.py index 760daa0e..912345ec 100644 --- a/msal/application.py +++ b/msal/application.py @@ -1,3 +1,4 @@ +import json import time try: # Python 2 from urlparse import urljoin @@ -8,16 +9,13 @@ import warnings import uuid -import requests - -from .oauth2cli i...
21
20
6
[{"id": "G0", "claim": "The three lines that filter None values out of _data can be replaced by a single dict-comprehension line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The implementation passes auth= to the injected http_client although...
null
AzureAD__microsoft-authentication-library-for-python__240
AzureAD/microsoft-authentication-library-for-python
240
defect
0ae4e9fa958e06b8f91b0a5bbae8427bdfad26ea
1ed53b17dfae74da061761acce212b60c6ff0b32
Client capabilities
<sub>Linking back to relevant issue (on behalf of Abhi ^_^) for easier cross-check during reviewing</sub> This will close #174
diff --git a/msal/application.py b/msal/application.py index ec0648c8..e45e10a2 100644 --- a/msal/application.py +++ b/msal/application.py @@ -97,7 +97,7 @@ def __init__( token_cache=None, http_client=None, verify=True, proxies=None, timeout=None, - client_claims=None, ...
3
3
0
[{"id": "G0", "claim": "The new optional client_capabilities parameter should be added at the end of the __init__ signature, not in the middle.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The client_capabilities docstring should be rewritten to use th...
null
AzureAD__microsoft-authentication-library-for-python__25
AzureAD/microsoft-authentication-library-for-python
25
defect
24424c07271dd1879f58ee88b03568ef826fc86c
d87f098a1eeec333c529d219e0dee684e313b9cb
Reading Authority Aliases
This PR covers the first two parts of Authority Migration mentioned as [here](https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview?path=%2FAuthorityMigration%2Fsummary.md&version=GBauthority-migration). UPDATE: If you prefer, you can install this branch for your smoke testing: pip insta...
diff --git a/msal/application.py b/msal/application.py index 6bb482a5..4ec8cd9a 100644 --- a/msal/application.py +++ b/msal/application.py @@ -1,4 +1,7 @@ import time + +import requests + try: # Python 2 from urlparse import urljoin except: # Python 3 @@ -101,6 +104,19 @@ def __init__( # Here the...
7
7
3
[{"id": "G0", "claim": "The flat aliases list collected from the instance discovery response won't work, because the authority aliases come as several separated groups rather than one big group, so the data structure needs to change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
AzureAD__microsoft-authentication-library-for-python__260
AzureAD/microsoft-authentication-library-for-python
260
defect
ffc659091de0192754bd05d379acb8d1b4056eb8
c1ea634417d8f0772bf3d0bb8e1dc499802477a6
Acquire token interactive using system browser
Original goal: - Adding state ~and pkce~ - ~Can we use a custom browser~ - Cleaning up the code and structure - Reference docs --- Latest Update: The latest commit implements: - `state`, `nonce` and `PKCE` protection are already implemented by recent refactoring. This PR is built on top of that, thus incl...
diff --git a/msal/application.py b/msal/application.py index 9d22eace..e3f76054 100644 --- a/msal/application.py +++ b/msal/application.py @@ -1,6 +1,9 @@ import functools import json import time + +from msal.oauth2cli.authcode import obtain_auth_code + try: # Python 2 from urlparse import urljoin except: #...
5
4
0
[{"id": "G0", "claim": "Remove the `**kwargs` param from acquire_token_interactive's signature for now, since the implementation does not handle it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the auth_url construction in the suggested multi-l...
null
AzureAD__microsoft-authentication-library-for-python__271
AzureAD/microsoft-authentication-library-for-python
271
defect
c37f36b487600b0cdcbd566b658a206180d87ad8
43d4711af4f71e2dc210160d363979d4a469c34e
Add support for acquiring a token with a pre-signed JWT
JWT. Useful for where the signing takes place externally for example using Azure Key Vault (AKV). AKV sample included. This is the MSAL version of [This pull](https://github.com/AzureAD/azure-activedirectory-library-for-python/pull/196)
diff --git a/msal/application.py b/msal/application.py index cae9013d..eef48931 100644 --- a/msal/application.py +++ b/msal/application.py @@ -151,6 +151,14 @@ def __init__( "The provided signature value did not match the expected signature value", you may try use only the leaf cert (in PEM/st...
5
4
1
[{"id": "G0", "claim": "The parameter name of this feature should be changed from `jwt` to `client_assertion` in the docstring, the application code, the sample and the test cases, so the API names the intention rather than the data format and stays consistent with MSAL .Net's `.WithClientAssertion(...)` API.", "catego...
null