{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1031","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1031/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1031/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1031/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1031","id":62069746,"number":1031,"title":"OAuth scope not correct","user":{"login":"svrooij","id":1292510,"avatar_url":"https://avatars.githubusercontent.com/u/1292510?v=3","gravatar_id":"","url":"https://api.github.com/users/svrooij","html_url":"https://github.com/svrooij","followers_url":"https://api.github.com/users/svrooij/followers","following_url":"https://api.github.com/users/svrooij/following{/other_user}","gists_url":"https://api.github.com/users/svrooij/gists{/gist_id}","starred_url":"https://api.github.com/users/svrooij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svrooij/subscriptions","organizations_url":"https://api.github.com/users/svrooij/orgs","repos_url":"https://api.github.com/users/svrooij/repos","events_url":"https://api.github.com/users/svrooij/events{/privacy}","received_events_url":"https://api.github.com/users/svrooij/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T12:46:01Z","updated_at":"2015-03-16T17:00:23Z","closed_at":"2015-03-16T17:00:23Z","body":"According to the [OAuth2.0 specs](https://tools.ietf.org/html/rfc6749#section-3.3) the scope parameter of the Authorization request should be an space delimited list of scopes.\r\nOur authorization server follows the specs and can't easily be changed. To let Swagger-UI follow the specs only one line needs to be changed.\r\n\r\n[Line 150 of swagger-oauth.js](https://github.com/swagger-api/swagger-ui/blob/14f27da1141eb83f78e560e12693970417b7319c/lib/swagger-oauth.js#L150)\r\n`url += '&scope=' + encodeURIComponent(scopes);` should be changed to `url += '&scope=' + encodeURIComponent(scopes.join(' '));`"}}