From cb2510c5420b6861538ecd3937c3cde1f9e05406 Mon Sep 17 00:00:00 2001 From: Benoit Meriaux Date: Thu, 30 Jun 2016 10:09:59 +0200 Subject: [PATCH] fix(grant_type): check authorization_code grant type for code response_type --- lib/commands/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/commands/client.js b/lib/commands/client.js index ff5553b..1b75535 100644 --- a/lib/commands/client.js +++ b/lib/commands/client.js @@ -158,6 +158,7 @@ function registerClient (cli, options, done) { answers.response_types.indexOf('code') !== -1 || answers.response_types.indexOf('code id_token token') !== -1 ) { + choices[0].checked = true choices[0].disabled = 'Required for code response type' } if ( @@ -499,6 +500,7 @@ function registerClient (cli, options, done) { answers.response_types.indexOf('code') !== -1 || answers.response_types.indexOf('code id_token token') !== -1 ) { + choices[0].checked = true choices[0].disabled = 'Required for code response type' } if (