added fix for #2075, changed auth name from basic to use configured value
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -19623,7 +19623,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
|
||||
this.router.api.clientAuthorizations.add(auth.get('title'), keyAuth);
|
||||
} else if (type === 'basic') {
|
||||
basicAuth = new SwaggerClient.PasswordAuthorization(auth.get('username'), auth.get('password'));
|
||||
this.router.api.clientAuthorizations.add(auth.get('type'), basicAuth);
|
||||
this.router.api.clientAuthorizations.add(auth.get('title'), basicAuth);
|
||||
} else if (type === 'oauth2') {
|
||||
this.handleOauth2Login(auth);
|
||||
}
|
||||
|
||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -71,7 +71,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
|
||||
this.router.api.clientAuthorizations.add(auth.get('title'), keyAuth);
|
||||
} else if (type === 'basic') {
|
||||
basicAuth = new SwaggerClient.PasswordAuthorization(auth.get('username'), auth.get('password'));
|
||||
this.router.api.clientAuthorizations.add(auth.get('type'), basicAuth);
|
||||
this.router.api.clientAuthorizations.add(auth.get('title'), basicAuth);
|
||||
} else if (type === 'oauth2') {
|
||||
this.handleOauth2Login(auth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user