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

Refactor Modules for Inbound Authentication #15435

Conversation

ldclakmal
Copy link
Member

@ldclakmal ldclakmal commented May 29, 2019

Purpose

The current ballerina/auth module has implementation related to Config Auth Store, JWT, LDAP etc. So, with this PR, ballerina/jwt and ballerina/ldap modules are newly created. Please refer to the discussion @ballerina-dev [1].

Also, the HTTP authn handlers were renamed in a generic manner as follows:

Old syntax New syntax
http:JwtAuthnHandler http:BearerAuthHeaderAuthnHandler
http:BasicAuthnHandler http:BasicAuthHeaderAuthnHandler

[1] https://groups.google.com/d/msg/ballerina-dev/7SYDiKeF8p8/3GNncS9dAwAJ

Fixes #15385

Check List

  • Read the Contributing Guide
  • Required Balo version update
  • Updated Change Log
  • Checked Tooling Support (Need tooling support for PR #15435 #15436)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

stdlib/auth/src/main/ballerina/auth/Module.md Outdated Show resolved Hide resolved
stdlib/auth/src/main/ballerina/auth/Module.md Outdated Show resolved Hide resolved
stdlib/auth/src/main/ballerina/auth/Module.md Outdated Show resolved Hide resolved
stdlib/jwt/src/main/ballerina/jwt/Module.md Outdated Show resolved Hide resolved
stdlib/ldap/src/main/ballerina/ldap/Module.md Outdated Show resolved Hide resolved
Copy link
Member

@ayomawdb ayomawdb left a comment

Choose a reason for hiding this comment

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

Looks like travis failed during test execution.

ldclakmal and others added 4 commits May 31, 2019 15:33
Co-Authored-By: praneesha <praneesha@wso2.com>
Co-Authored-By: Bhashinee <Bhashinee@users.noreply.github.com>
@codecov-io
Copy link

codecov-io commented May 31, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@832d9b5). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #15435   +/-   ##
=========================================
  Coverage          ?   43.59%           
  Complexity        ?     5393           
=========================================
  Files             ?      983           
  Lines             ?    38012           
  Branches          ?     5727           
=========================================
  Hits              ?    16571           
  Misses            ?    19579           
  Partials          ?     1862

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 832d9b5...fa49913. Read the comment docs.

@ldclakmal ldclakmal requested a review from ayomawdb May 31, 2019 13:28
@ldclakmal ldclakmal merged commit 50a02d8 into ballerina-platform:master Jun 2, 2019
@ldclakmal ldclakmal mentioned this pull request Jun 6, 2019
14 tasks
@ldclakmal ldclakmal deleted the refactor-modules-for-inbound-auth branch March 27, 2020 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/StandardLibs All Ballerina standard libraries Type/Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Module Structure for Ballerina Inbound Authentication
5 participants