Merge pull request #2527 from swagger-api/issue-2497

only pass selected scopes
This commit is contained in:
Tony Tam
2016-11-23 20:59:56 -08:00
committed by GitHub
3 changed files with 9 additions and 5 deletions
+4 -2
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -98,7 +98,9 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
var redirectUrl = window.oAuthRedirectUrl || defaultRedirectUrl;
var url = null;
var scopes = _.map(auth.get('scopes'), function (scope) {
return scope.scope;
if(scope.checked) {
return scope.scope;
}
});
var container = window.swaggerUiAuth || (window.swaggerUiAuth = {});
var state, dets, ep;