From 5ac91ec981b007b90f0962e2ab844b369fe21380 Mon Sep 17 00:00:00 2001 From: fretje Date: Tue, 24 Oct 2017 13:33:20 +0200 Subject: [PATCH] the key for clientAuthorizations.add must be the same as the one of the securitydefinition (in the startup class) --- .../wwwroot/swagger/ui/on-complete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/on-complete.js b/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/on-complete.js index b00710263..b62a5853a 100644 --- a/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/on-complete.js +++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/on-complete.js @@ -11,7 +11,7 @@ var abp = abp || {}; return false; } var cookieAuth = new SwaggerClient.ApiKeyAuthorization(abp.auth.tokenHeaderName, 'Bearer ' + authToken, 'header'); - swaggerUi.api.clientAuthorizations.add(abp.auth.tokenHeaderName, cookieAuth); + swaggerUi.api.clientAuthorizations.add('bearerAuth', cookieAuth); return true; }