2121
2222/**
2323 * Tests for the User Federated Identity Credential (user_fic) flow.
24- * Covers §6 (user_fic grant type), §7 (user_federated_identity_credential body param),
25- * §8 (user_id/username body params), and §11 (primitive API) from AgentIDs_ComponentsReference.
2624 */
2725@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
2826class UserFederatedIdentityCredentialTest {
@@ -59,7 +57,7 @@ private HttpResponse createSuccessResponseWithIdToken() {
5957 }
6058
6159 // ========================================================================
62- // §6: user_fic grant type
60+ // Grant type and body parameters
6361 // ========================================================================
6462
6563 @ Test
@@ -86,7 +84,7 @@ void userFic_SendsCorrectGrantType() throws Exception {
8684 }
8785
8886 // ========================================================================
89- // §7: user_federated_identity_credential body parameter
87+ // user_federated_identity_credential body parameter
9088 // ========================================================================
9189
9290 @ Test
@@ -113,7 +111,7 @@ void userFic_SendsAssertionInBody() throws Exception {
113111 }
114112
115113 // ========================================================================
116- // §8: user_id / username body parameters — mutual exclusion
114+ // user_id / username body parameters — mutual exclusion
117115 // ========================================================================
118116
119117 @ Test
@@ -165,7 +163,7 @@ void userFic_WithOid_SendsUserIdNotUsername() throws Exception {
165163 }
166164
167165 // ========================================================================
168- // §6+§7+§8 combined: all parameters sent together
166+ // All parameters sent together
169167 // ========================================================================
170168
171169 @ Test
@@ -224,7 +222,7 @@ void userFic_ScopeIncludesOidcScopes() throws Exception {
224222 }
225223
226224 // ========================================================================
227- // §11: Token stored in user cache
225+ // Token stored in user cache
228226 // ========================================================================
229227
230228 @ Test
@@ -251,7 +249,7 @@ void userFic_TokenStoredInUserCache() throws Exception {
251249 }
252250
253251 // ========================================================================
254- // §11: Force refresh bypasses cache
252+ // Force refresh bypasses cache
255253 // ========================================================================
256254
257255 @ Test
@@ -285,7 +283,7 @@ void userFic_ForceRefresh_BypassesCache() throws Exception {
285283 }
286284
287285 // ========================================================================
288- // §11: Cache hit when not force-refreshing
286+ // Cache hit when not force-refreshing
289287 // ========================================================================
290288
291289 @ Test
@@ -391,7 +389,7 @@ void userFic_Parameters_OidBuilder_SetsFieldsCorrectly() {
391389 }
392390
393391 // ========================================================================
394- // Multi-user cache isolation (matches .NET TwoUpns/TwoOids tests)
392+ // Multi-user cache isolation
395393 // ========================================================================
396394
397395 /**
@@ -422,9 +420,8 @@ private HttpResponse createUserResponse(String oid, String preferredUsername, St
422420 }
423421
424422 /**
425- * Verifies that two different users (by UPN) acquire tokens via UserFIC on the same CCA,
423+ * Verifies that two different users (by UPN) acquire tokens via user_fic on the same CCA,
426424 * and AcquireTokenSilent returns the correct cached token for each user.
427- * Matches .NET's AcquireTokenByUserFic_TwoUpns_SilentReturnsCorrectToken_Async.
428425 */
429426 @ Test
430427 void userFic_TwoUpns_SilentReturnsCorrectToken () throws Exception {
@@ -492,9 +489,8 @@ void userFic_TwoUpns_SilentReturnsCorrectToken() throws Exception {
492489 }
493490
494491 /**
495- * Verifies that two different users (by OID) acquire tokens via UserFIC on the same CCA,
492+ * Verifies that two different users (by OID) acquire tokens via user_fic on the same CCA,
496493 * and AcquireTokenSilent resolves the correct account by OID.
497- * Matches .NET's AcquireTokenByUserFic_TwoOids_SilentReturnsCorrectToken_Async.
498494 */
499495 @ Test
500496 void userFic_TwoOids_SilentReturnsCorrectToken () throws Exception {
0 commit comments