Merge pull request #2527 from swagger-api/issue-2497
only pass selected scopes
This commit is contained in:
6
dist/swagger-ui.js
vendored
6
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
4
dist/swagger-ui.min.js
vendored
4
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -98,7 +98,9 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
|
|||||||
var redirectUrl = window.oAuthRedirectUrl || defaultRedirectUrl;
|
var redirectUrl = window.oAuthRedirectUrl || defaultRedirectUrl;
|
||||||
var url = null;
|
var url = null;
|
||||||
var scopes = _.map(auth.get('scopes'), function (scope) {
|
var scopes = _.map(auth.get('scopes'), function (scope) {
|
||||||
return scope.scope;
|
if(scope.checked) {
|
||||||
|
return scope.scope;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
var container = window.swaggerUiAuth || (window.swaggerUiAuth = {});
|
var container = window.swaggerUiAuth || (window.swaggerUiAuth = {});
|
||||||
var state, dets, ep;
|
var state, dets, ep;
|
||||||
|
|||||||
Reference in New Issue
Block a user