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

Split JWT validation API for 2 APIs #1213

Closed
ldclakmal opened this issue Apr 5, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-jwt#105
Closed

Split JWT validation API for 2 APIs #1213

ldclakmal opened this issue Apr 5, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-jwt#105
Assignees
Labels
Area/Security Issues related to stdlib security module/jwt Type/Improvement

Comments

@ldclakmal
Copy link
Member

Description:
The JWT validation API need to be splitted into 2 for public and internal usages as follows:

public isolated function validate(string jwt, ValidatorConfig validatorConfig) returns Payload|Error { }

isolated function validateJwt(string jwt, ValidatorConfig validatorConfig, cache:Cache? jwksCache = ()) returns Payload|Error { }
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/jwt Type/Improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant