From 340da086bad74008c8e192d4d5a75c8e37a61fa6 Mon Sep 17 00:00:00 2001 From: Tom Baker Date: Fri, 19 Jun 2015 13:29:45 -0500 Subject: [PATCH] OAuth flow only selected scopes should be sent to Authorize endpoint #1388. Need to clear out previous popupDialog nodes, so previous checkboxes won't be considered. --- lib/swagger-oauth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/swagger-oauth.js b/lib/swagger-oauth.js index fed588c6..17f6d35a 100644 --- a/lib/swagger-oauth.js +++ b/lib/swagger-oauth.js @@ -40,6 +40,7 @@ function handleLogin() { appName = window.swaggerUi.api.info.title; } + $('.api-popup-dialog').remove(); popupDialog = $( [ '
',