|
66 | 66 | var request = superagent.post("https://" + oAuthBasePath + "/oauth/token") |
67 | 67 | .timeout(exports.prototype.timeout) |
68 | 68 | .set('Content-Type', 'application/x-www-form-urlencoded') |
| 69 | + .set('Cache-Control', 'no-store') |
| 70 | + .set('Pragma', 'no-cache') |
69 | 71 | .send({ |
70 | 72 | 'assertion': assertion, |
71 | 73 | 'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer' |
|
99 | 101 | if (basePath.includes('https://www.docusign')) { |
100 | 102 | return exports.prototype.OAuth.BasePath.PRODUCTION; |
101 | 103 | } |
| 104 | + return exports.prototype.OAuth.BasePath.PRODUCTION; |
102 | 105 | }; |
103 | 106 |
|
104 | 107 | /** |
|
724 | 727 | }, |
725 | 728 | headers = { |
726 | 729 | "Authorization": "Basic " + (new Buffer(clientString).toString('base64')), |
| 730 | + "Cache-Control": "no-store", |
| 731 | + "Pragma": "no-cache" |
727 | 732 | }, |
728 | 733 | OAuthToken = require('./OAuth').OAuthToken, |
729 | 734 | request = superagent.post("https://" + this.getOAuthBasePath() + "/oauth/token") |
|
763 | 768 |
|
764 | 769 | var headers = { |
765 | 770 | "Authorization": "Bearer " + accessToken, |
| 771 | + "Cache-Control": "no-store", |
| 772 | + "Pragma": "no-cache" |
766 | 773 | } |
767 | 774 |
|
768 | 775 | var request = superagent.get("https://" + this.getOAuthBasePath() + "/oauth/userinfo").set(headers); |
|
848 | 855 | superagent('post', 'https://' + this.getOAuthBasePath() + '/oauth/token') |
849 | 856 | .timeout(this.timeout) |
850 | 857 | .set('Content-Type', 'application/x-www-form-urlencoded') |
| 858 | + .set('Cache-Control', 'no-store') |
| 859 | + .set('Pragma', 'no-cache') |
851 | 860 | .send({ |
852 | 861 | 'assertion': assertion, |
853 | 862 | 'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer' |
|
0 commit comments