@@ -4,7 +4,7 @@ chai.use(chaiAsPromised);
4
4
const expect = chai . expect ;
5
5
import sinon from "sinon" ;
6
6
import { Configuration , buildConfiguration } from "../../src/config/Configuration" ;
7
- import { PkceCodes , NetworkRequestOptions , LogLevel , AccountInfo , AuthorityFactory , AuthorizationCodeRequest , Constants , AuthenticationResult , CacheSchemaType , CacheManager , AuthorizationCodeClient } from "@azure/msal-common" ;
7
+ import { PkceCodes , NetworkRequestOptions , LogLevel , AccountInfo , AuthorityFactory , AuthorizationCodeRequest , Constants , AuthenticationResult , CacheSchemaType , CacheManager , AuthorizationCodeClient , AuthenticationScheme } from "@azure/msal-common" ;
8
8
import { TEST_CONFIG , TEST_URIS , TEST_TOKENS , TEST_DATA_CLIENT_INFO , RANDOM_TEST_GUID , TEST_HASHES , TEST_TOKEN_LIFETIMES , TEST_POP_VALUES } from "../utils/StringConstants" ;
9
9
import { BrowserStorage } from "../../src/cache/BrowserStorage" ;
10
10
import { RedirectHandler } from "../../src/interaction_handler/RedirectHandler" ;
@@ -75,6 +75,9 @@ describe("RedirectHandler.ts Unit Tests", () => {
75
75
} ,
76
76
getPublicKeyThumbprint : async ( ) : Promise < string > => {
77
77
return TEST_POP_VALUES . ENCODED_REQ_CNF ;
78
+ } ,
79
+ signJwt : async ( ) : Promise < string > => {
80
+ return "signedJwt" ;
78
81
}
79
82
} ,
80
83
storageInterface : browserStorage ,
@@ -211,7 +214,8 @@ describe("RedirectHandler.ts Unit Tests", () => {
211
214
expiresOn : new Date ( Date . now ( ) + ( TEST_TOKEN_LIFETIMES . DEFAULT_EXPIRES_IN * 1000 ) ) ,
212
215
idTokenClaims : idTokenClaims ,
213
216
tenantId : idTokenClaims . tid ,
214
- uniqueId : idTokenClaims . oid
217
+ uniqueId : idTokenClaims . oid ,
218
+ tokenType : AuthenticationScheme . BEARER
215
219
} ;
216
220
const browserCrypto = new CryptoOps ( ) ;
217
221
const testAuthCodeRequest : AuthorizationCodeRequest = {
0 commit comments