Skip to content

Commit

Permalink
chore: change default auth type to be oauth (#291)
Browse files Browse the repository at this point in the history
* chore: change default auth type to be oauth

* chore: update changelog
  • Loading branch information
ShawkyZ authored Aug 27, 2024
1 parent 49181c8 commit e4b3568
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Snyk Security Changelog

## [1.1.63]

### Fixed
- Change default auth type to OAuth.

## [1.1.62]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Snyk.Common.Tests/Service/ApiEndpointResolverTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void AuthenticationMethod()
var apiEndpointResolver = new ApiEndpointResolver(optionsMock.Object);

// Assert
Assert.Equal(AuthenticationType.Token, apiEndpointResolver.AuthenticationMethod);
Assert.Equal(AuthenticationType.OAuth, apiEndpointResolver.AuthenticationMethod);

optionsMock
.Setup(options => options.CustomEndpoint)
Expand Down
4 changes: 2 additions & 2 deletions Snyk.Common/Authentication/AuthenticationType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace Snyk.Common.Authentication
{
public enum AuthenticationType
{
[Description("Token authentication")]
Token,
[Description("OAuth2 authentication")]
OAuth,
[Description("Token authentication")]
Token,
}
}

0 comments on commit e4b3568

Please sign in to comment.