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

Update OAuth2 property names to camelCase #85

Merged
merged 1 commit into from
May 20, 2024

Conversation

caputomarcos
Copy link
Owner

Update OAuth2 Property Names to camelCase

What is being fixed - and why?

Description of problem/issue:
The OAuth2 property names were previously using snake_case, which is inconsistent with JavaScript naming conventions that prefer camelCase. This inconsistency can cause confusion and make the codebase harder to maintain.

Statement of why it needs fixing:
To maintain code consistency and adhere to JavaScript best practices, it's important that property names follow the camelCase convention. This update will improve code readability and maintainability.

What has changed?

Summary of changes and how they resolve the issue:
This commit updates the OAuth2 property names to use camelCase instead of snake_case. The changes include:

  • HTML: Updated property names in the HTML files.
  • JSON locale files: Updated property names in the JSON locale files.
  • JavaScript backend code: Updated property names in the backend code.

Affected properties:

  • grant_type -> grantType
  • access_token_url -> accessTokenUrl
  • authorization_endpoint -> authorizationEndpoint
  • redirect_uri -> redirectUri
  • open_authentication -> openAuthentication
  • client_id -> clientId
  • client_secret -> clientSecret
  • client_credentials_in_body -> clientCredentialsInBody

Additional updates:

  • Corresponding labels and placeholders in the UI components have been updated to reflect the new camelCase property names.

By making these changes, the codebase will now follow a consistent naming convention, improving overall readability and maintainability.

 This commit updates the OAuth2 property names to use camelCase instead of snake_case to maintain consistency with JavaScript naming conventions. The changes include updating the property names in the
 HTML, JSON locale files, and the JavaScript backend code. The affected properties are `grant_type`, `access_token_url`, `authorization_endpoint`, `redirect_uri`, `open_authentication`, `client_id`,
 `client_secret`, and `client_credentials_in_body`, which have been changed to `grantType`, `accessTokenUrl`, `authorizationEndpoint`, `redirectUri`, `openAuthentication`, `clientId`, `clientSecret`, and
 `clientCredentialsInBody`, respectively. Additionally, the commit includes updates to the corresponding labels and placeholders in the UI components.
@caputomarcos caputomarcos merged commit c0ca6c9 into main May 20, 2024
1 of 2 checks passed
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.

1 participant