Prefer tokenName as vendor extension in auth view

This commit is contained in:
Moses Palmér
2016-12-29 09:57:30 +01:00
parent 43760ec29f
commit 4f467b4073

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')) {