Browse Source

Prefer tokenName as vendor extension in auth view

bubble
Moses Palmér 7 years ago
parent
commit
4f467b4073
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/javascript/view/AuthView.js

+ 1
- 1
src/main/javascript/view/AuthView.js View File

@@ -117,7 +117,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
* @return the name of the access token parameter
*/
function getTokenName(dets) {
return dets.tokenName;
return dets.vendorExtensions['x-tokenName'] || dets.tokenName;
}

if(auth.get('type') === 'oauth2' && flow && (flow === 'implicit' || flow === 'accessCode')) {


Loading…
Cancel
Save