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

Validate inputs #10

Open
crazybolillo opened this issue Aug 6, 2024 · 2 comments
Open

Validate inputs #10

crazybolillo opened this issue Aug 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@crazybolillo
Copy link
Owner

The app eventually needs to validate stuff like:

  • Endpoint IDs
  • Endpoint Display Names
  • Bouncer must prohibit calls to its own (endpoint dialing its own extension)

And probably other stuff that gets added in the future.

@crazybolillo crazybolillo added the enhancement New feature or request label Aug 6, 2024
@crazybolillo
Copy link
Owner Author

Possible validation for user:

  1. ID: May only contain lowercase alphanumeric characters, hyphens, dots and underscores. 64 character limit. Examples of valid users could be:

    • john.doe
    • john77
    • 4005 (please don't do this)
    • john_doe
    • john-doe
  2. Display Name: Allow all characters besides special ones, like <>@;. 64 character limit

  3. Password: Min length of 12 characters, max of 128, just to have a limit.

  4. Context: Alphanumeric characters, max of 64.

  5. Transport: Alphanumeric characters, hyphens and underscores. Max of 64

  6. Max contacts: Equal or bigger than 1.

  7. Extension: At least one digit long, up to 6. It is a string but it should only have digits.

@crazybolillo
Copy link
Owner Author

Also, if validations are going to be performed, helpful error messages should be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant