Skip to content

Commit e0c0664

Browse files
author
alirizaadiyahsi
authored
Merge pull request #134 from fretje/bearerAuth
the key for clientAuthorizations.add must be the same as the one of the SecurityDefinition
2 parents b36dbea + 5ac91ec commit e0c0664

File tree

1 file changed

+1
-1
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui

1 file changed

+1
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/on-complete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var abp = abp || {};
1111
return false;
1212
}
1313
var cookieAuth = new SwaggerClient.ApiKeyAuthorization(abp.auth.tokenHeaderName, 'Bearer ' + authToken, 'header');
14-
swaggerUi.api.clientAuthorizations.add(abp.auth.tokenHeaderName, cookieAuth);
14+
swaggerUi.api.clientAuthorizations.add('bearerAuth', cookieAuth);
1515
return true;
1616
}
1717

0 commit comments

Comments
 (0)