Skip to content

Commit e4b3568

Browse files
authored
chore: change default auth type to be oauth (#291)
* chore: change default auth type to be oauth * chore: update changelog
1 parent 49181c8 commit e4b3568

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Snyk Security Changelog
22

3+
## [1.1.63]
4+
5+
### Fixed
6+
- Change default auth type to OAuth.
7+
38
## [1.1.62]
49

510
### Fixed

Snyk.Common.Tests/Service/ApiEndpointResolverTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void AuthenticationMethod()
9696
var apiEndpointResolver = new ApiEndpointResolver(optionsMock.Object);
9797

9898
// Assert
99-
Assert.Equal(AuthenticationType.Token, apiEndpointResolver.AuthenticationMethod);
99+
Assert.Equal(AuthenticationType.OAuth, apiEndpointResolver.AuthenticationMethod);
100100

101101
optionsMock
102102
.Setup(options => options.CustomEndpoint)

Snyk.Common/Authentication/AuthenticationType.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ namespace Snyk.Common.Authentication
44
{
55
public enum AuthenticationType
66
{
7-
[Description("Token authentication")]
8-
Token,
97
[Description("OAuth2 authentication")]
108
OAuth,
9+
[Description("Token authentication")]
10+
Token,
1111
}
1212
}

0 commit comments

Comments
 (0)