How to add custom headers for OAuth token requests from external providersSummaryPre-Paris versions did not facilitate adding custom headers to OAuth token requests (Get OAuth Token) from external providers. InstructionsThis feature is available in the 'Paris' release. Steps to achieve this: 1. You can extend the out of the box 'OAuthUtil' script include and add the custom headers in the 'preprocessAuthCode' method as follows. In this example we added a custom header "Content-Type" preprocessAuthCode: function(requestParamMap) {this.oauthContext.setAuthorizationEndpoint("https://accounts.google.com/o/oauth2/v2/auth");this.oauthContext.addHeader("Content-Type","application/json");var profGr = this.oauthContext.getOAuthProfile();gs.info(profGr.getValue('name'));}, *** NOTE: The custom script include name must start with OAuth. 2. In the OAuth Application Registry make sure to update the "OAuth API Script" field to point to the script include created in step 1.