Explorar el Código

Fix OAuth2 login when no scope is defined

bubble
Stefano Travelli hace 9 años
padre
commit
a5f1eeae04
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      lib/swagger-oauth.js

+ 1
- 1
lib/swagger-oauth.js Ver fichero

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


Cargando…
Cancelar
Guardar