This website works better with JavaScript.
首頁
探索
說明
登入
bubblev
/
swagger-ui
關註
4
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Fix OAuth2 login when no scope is defined
bubble
Stefano Travelli
9 年之前
父節點
384ffb7e1f
當前提交
a5f1eeae04
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/swagger-oauth.js
+ 1
- 1
lib/swagger-oauth.js
查看文件
@@ -14,8 +14,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…
取消
儲存