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

Implement WebSocket Security BBEs #1930

Merged
merged 23 commits into from
Jun 14, 2021

Conversation

ldclakmal
Copy link
Member

Purpose

$subject was done for following BBEs:

WebSocket Security

  • Service - TLS
  • Service - MTLS
  • Service - Basic Auth File User Store
  • Service - Basic Auth LDAP User Store
  • Service - JWT Auth
  • Service - OAuth2
  • Client - TLS
  • Client - MTLS
  • Client Basic Auth
  • Client Bearer Token
  • Client - Self-signed JWT Auth
  • Client - OAuth2 client credentials grant type
  • Client - OAuth2 password
  • Client - OAuth2 Refresh token

Fixes ballerina-platform/ballerina-library#1421
Related to ballerina-platform/ballerina-library#584

@ldclakmal ldclakmal marked this pull request as ready for review June 12, 2021 02:45

public function main() returns error? {
check securedEP->writeTextMessage("Hello, World!");
string response = check securedEP->readTextMessage();
Copy link
Member

@Bhashinee Bhashinee Jun 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string response = check securedEP->readTextMessage();
string textMessage = check securedEP->readTextMessage();

When we say the response isn't it more like getting a response for a request as in HTTP? Shall we keep it as textMessage? WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Fixed with 845ed03

Co-authored-by: Bhashinee <Bhashinee@users.noreply.github.com>
@ldclakmal ldclakmal merged commit 008841c into ballerina-platform:master Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write new security BBEs for WebSocket
2 participants