File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ const log: Logger = logger.child({ module: "utils-auth-apim-fetch-apim-access-to
1111
1212const fetchAPIMAccessToken = async ( idToken : IdToken ) : Promise < ApimTokenResponse > => {
1313 const apimConfig : ApimConfig = await apimConfigProvider ( ) ;
14- log . info ( { context : { apimConfig, idToken } } , "Fetching APIM Access Token" ) ;
14+ log . debug ( { context : { apimConfig, idToken } } , "Fetching APIM Access Token" ) ;
1515
1616 try {
1717 const tokenPayload : APIMTokenPayload = generateAPIMTokenPayload ( apimConfig , idToken ) ;
18- log . info ( { context : { tokenPayload } } , "APIM token payload" ) ;
18+ log . debug ( { context : { tokenPayload } } , "APIM token payload" ) ;
1919
2020 const response : AxiosResponse < ApimTokenResponse > = await axios . post ( apimConfig . APIM_AUTH_URL . href , tokenPayload , {
2121 headers : { "Content-Type" : "application/x-www-form-urlencoded" } ,
2222 timeout : 5000 ,
2323 validateStatus : ( status ) => status < HttpStatusCode . BadRequest ,
2424 } ) ;
2525
26- log . info ( "APIM access token fetched" ) ;
26+ log . info ( { context : { apimToken : response . data } } , "APIM access token fetched" ) ;
2727 return response . data ;
2828 } catch ( error ) {
2929 if ( axios . isAxiosError ( error ) ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const REDACT_KEYS: string[] = [
1414 "access_token" ,
1515 "apiKey" ,
1616 "api_key" ,
17+ "apimToken" ,
1718 "aud" ,
1819 "birthdate" ,
1920 "clientAssertion" ,
You can’t perform that action at this time.
0 commit comments