This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
swagger-ui
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix OAuth2 login when no scope is defined
bubble
Stefano Travelli
9 years ago
committed by
Mohsen Azimi
parent
8a206e1e96
commit
bb1ebcef28
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/swagger-oauth.js
+ 1
- 1
lib/swagger-oauth.js
View File
@@ -15,8 +15,8 @@ function handleLogin() {
var defs = auths;
for(key in defs) {
var auth = defs[key];
oauth2KeyName = key;
if(auth.type === 'oauth2' && auth.scopes) {
oauth2KeyName = key;
var scope;
if(Array.isArray(auth.scopes)) {
// 1.2 support
Write
Preview
Loading…
Cancel
Save