Prefer tokenName as vendor extension in auth view
This commit is contained in:
@@ -117,7 +117,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
|
|||||||
* @return the name of the access token parameter
|
* @return the name of the access token parameter
|
||||||
*/
|
*/
|
||||||
function getTokenName(dets) {
|
function getTokenName(dets) {
|
||||||
return dets.tokenName;
|
return dets.vendorExtensions['x-tokenName'] || dets.tokenName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(auth.get('type') === 'oauth2' && flow && (flow === 'implicit' || flow === 'accessCode')) {
|
if(auth.get('type') === 'oauth2' && flow && (flow === 'implicit' || flow === 'accessCode')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user