File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ private static async Task AgentUserIdentityGetsTokenForGraphAsync()
6565 . WithClientAssertion ( ( AssertionRequestOptions _ ) => GetAppCredentialAsync ( AgentIdentity ) )
6666 . Build ( ) ;
6767
68- string userFicAssertion = await GetUserFic ( ) . ConfigureAwait ( false ) ;
69-
7068 var result = await ( cca as IByUsernameAndPassword ) . AcquireTokenByUsernamePassword ( [ Scope ] , UserUpn , "no_password" )
7169 . OnBeforeTokenRequest (
7270 async ( request ) =>
7371 {
72+ string userFicAssertion = await GetUserFic ( ) . ConfigureAwait ( false ) ;
73+
7474 request . BodyParameters [ "user_federated_identity_credential" ] = userFicAssertion ;
7575 request . BodyParameters [ "grant_type" ] = "user_fic" ;
7676
@@ -116,7 +116,7 @@ private static async Task<string> GetAppCredentialAsync(string fmiPath)
116116 return result . AccessToken ;
117117 }
118118
119- private static async Task < string > GetUserFic ( )
119+ private static async Task < string > GetUserFic ( )
120120 {
121121 var cca1 = ConfidentialClientApplicationBuilder
122122 . Create ( AgentIdentity )
You can’t perform that action at this time.
0 commit comments