diff --git a/src/Core/IdentityServer/Clients.cs b/src/Core/IdentityServer/Clients.cs index 9f8a369105..47bf8162e9 100644 --- a/src/Core/IdentityServer/Clients.cs +++ b/src/Core/IdentityServer/Clients.cs @@ -12,7 +12,8 @@ namespace Bit.Core.IdentityServer new ApiClient("mobile", 90, 1), new ApiClient("web", 1, 1), new ApiClient("browser", 30, 1), - new ApiClient("desktop", 30, 1) + new ApiClient("desktop", 30, 1), + new ApiClient("connector", 30, 24) }; } @@ -22,7 +23,7 @@ namespace Bit.Core.IdentityServer string id, int refreshTokenSlidingDays, int accessTokenLifetimeHours, - string[] additionalScopes = null) + string[] scopes = null) { ClientId = id; RequireClientSecret = false; @@ -35,10 +36,9 @@ namespace Bit.Core.IdentityServer AccessTokenLifetime = 3600 * accessTokenLifetimeHours; AllowOfflineAccess = true; - var scopes = new List { "api" }; - if(additionalScopes != null) + if(scopes == null) { - scopes.AddRange(additionalScopes); + scopes = new string[] { "api" }; } AllowedScopes = scopes; }