Skip to content

Commit 934a55a

Browse files
committed
recognise GitLab hosts by WWW-Authenticate header
1 parent ac0b264 commit 934a55a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/GitLab/GitLabHostProvider.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using GitCredentialManager;
55
using GitCredentialManager.Authentication.OAuth;
66
using System.Net.Http.Headers;
7+
using System.Linq;
78

89
namespace GitLab
910
{
@@ -69,6 +70,10 @@ public override bool IsSupported(InputArguments input)
6970
return true;
7071
}
7172

73+
if (input.WwwAuth.Any(x => x.Contains("realm=\"GitLab\""))) {
74+
return true;
75+
}
76+
7277
return false;
7378
}
7479

0 commit comments

Comments
 (0)