From cce3b4eb620bb87abb5e5a7a251e3daac6340142 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 30 Nov 2017 17:13:10 +0100 Subject: [PATCH] note about deprecation for 3.0 [skip ci] --- lib/helpers/client_schema.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/helpers/client_schema.js b/lib/helpers/client_schema.js index d28508ca4..29a07d67e 100644 --- a/lib/helpers/client_schema.js +++ b/lib/helpers/client_schema.js @@ -122,7 +122,9 @@ module.exports = function getSchema(provider) { class Schema { constructor(metadata) { - metadata = _.omitBy(metadata, _.isNull); + // TODO: DEPRECATE the following line in 3.0; + metadata = _.omitBy(metadata, _.isNull); // eslint-disable-line no-param-reassign + // unless explicitly provided use token_* values ['revocation', 'introspection'].forEach((endpoint) => { if (metadata[`${endpoint}_endpoint_auth_method`] === undefined) {