Skip to content

Commit

Permalink
fix: check for mTLS request options during token_endpoint calls
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 6, 2019
1 parent 0ebf798 commit 269569f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helpers/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ async function authenticatedPost(endpoint, opts, {
const auth = await authFor.call(this, endpointAuthMethod, { clientAssertionPayload });
const requestOpts = merge(opts, auth, { form: true });

const mTLS = this[`${endpointAuthMethod}_endpoint_auth_method`].includes('tls_client_auth');
const mTLS = this[`${endpointAuthMethod}_endpoint_auth_method`].includes('tls_client_auth')
|| (endpoint === 'token' && this.tls_client_certificate_bound_access_tokens);

let targetUrl;
if (mTLS) {
Expand Down

0 comments on commit 269569f

Please sign in to comment.