Parcourir la source

Fix OAuth2 login when no scope is defined

bubble
Stefano Travelli il y a 9 ans
committed by Mohsen Azimi
Parent
révision
bb1ebcef28
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      lib/swagger-oauth.js

+ 1
- 1
lib/swagger-oauth.js Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer