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

Made public API enpoints check case-insensitive #2725

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

u-hubar
Copy link
Member

@u-hubar u-hubar commented Sep 22, 2023

No description provided.

@u-hubar u-hubar added the improvement Improvements or enhancements to existing features label Sep 22, 2023
@u-hubar u-hubar self-assigned this Sep 22, 2023
Comment on lines +65 to +68
const lowerCaseOperationName = operationName.toLowerCase();

return this._authConfig.publicOperations.some((publicOperation) => {
const lowerCasePublicOperation = publicOperation.toLowerCase();
Copy link
Contributor

Choose a reason for hiding this comment

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

it might be better to transform strings into upper case because we have upper case in the db and also in the config

@u-hubar u-hubar merged commit 11aadf0 into v6/develop Sep 22, 2023
3 checks passed
@u-hubar u-hubar deleted the v6/fix/auth-operations-case-insensitive branch September 22, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvements or enhancements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants