Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 9416506

Browse files
committedJun 4, 2016
Merge pull request swagger-api#2192 from swagger-api/issue-2075
changed auth name from `basic` to use configured value
2 parents 30ed33c + 1a1cfc5 commit 9416506

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎dist/swagger-ui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19623,7 +19623,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
1962319623
this.router.api.clientAuthorizations.add(auth.get('title'), keyAuth);
1962419624
} else if (type === 'basic') {
1962519625
basicAuth = new SwaggerClient.PasswordAuthorization(auth.get('username'), auth.get('password'));
19626-
this.router.api.clientAuthorizations.add(auth.get('type'), basicAuth);
19626+
this.router.api.clientAuthorizations.add(auth.get('title'), basicAuth);
1962719627
} else if (type === 'oauth2') {
1962819628
this.handleOauth2Login(auth);
1962919629
}

0 commit comments

Comments
 (0)