From 5a6e189e6750909c8dd176b627b5e9951104b4e3 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 12 May 2017 13:43:42 -0400 Subject: [PATCH] connector client --- src/Core/IdentityServer/Clients.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }