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

Extend listener auth handler APIs for http:Headers class #1013

Closed
ldclakmal opened this issue Feb 24, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-http#247
Assignees
Labels
Area/Security Issues related to stdlib security module/http Type/Improvement Verson/SwanLakeDump All issues planned for Swan Lake GA release

Comments

@ldclakmal
Copy link
Member

Description
Currently, the auth handlers accept http:Request class or string of Authorization header. This need to be extended by adding http:Headers class as well.

Example:

public isolated function authenticate(Request|Headers|string data) returns auth:UserDetails|Unauthorized { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Security Issues related to stdlib security module/http Type/Improvement Verson/SwanLakeDump All issues planned for Swan Lake GA release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant