Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add basic auth support for Messages #384

Merged
merged 5 commits into from
Apr 14, 2023
Merged

fix: add basic auth support for Messages #384

merged 5 commits into from
Apr 14, 2023

Conversation

Tr00d
Copy link
Contributor

@Tr00d Tr00d commented Apr 13, 2023

Related to the following issue: #288
So far, Messages only supported Bearer authentication, while it was supposed to handle Basic too.

Credentials can now provide a "preferred" authentication:

  • Bearer if both AppId and PrivateKey are filled (always favoured over Basic)
  • Basic if both ApiKey and ApiSecret are filled
  • Throws an AuthenticationException otherwise

@Tr00d Tr00d changed the title feat: add basic auth support for Messages fix: add basic auth support for Messages Apr 13, 2023
@Tr00d Tr00d removed the feature label Apr 13, 2023
# Conflicts:
#	Vonage.Test.Unit/AccountTest.cs
#	Vonage.Test.Unit/ConversionTest.cs
#	Vonage.Test.Unit/NumberInsightsTests.cs
#	Vonage.Test.Unit/PricingTests.cs
#	Vonage.Test.Unit/ShortCodeTests.cs
#	Vonage.Test.Unit/VerifyTest.cs
#	Vonage/Accounts/AccountClient.cs
#	Vonage/Applications/ApplicationClient.cs
#	Vonage/NumberInsights/NumberInsightClient.cs
#	Vonage/Numbers/NumbersClient.cs
#	Vonage/Pricing/PricingClient.cs
#	Vonage/Redaction/RedactClient.cs
#	Vonage/Request/ApiRequest.cs
#	Vonage/Request/Credentials.cs
#	Vonage/ShortCodes/ShortCodesClient.cs
#	Vonage/Verify/VerifyClient.cs
#	Vonage/Voice/VoiceClient.cs
@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 11 Code Smells

52.9% 52.9% Coverage
0.0% 0.0% Duplication

@Tr00d Tr00d merged commit 8fae4fb into main Apr 14, 2023
@Tr00d Tr00d deleted the messages-auth branch April 14, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant