Skip to content

Commit

Permalink
ENH: Support '-'/'+' in API access username
Browse files Browse the repository at this point in the history
These characters is also allowed in emails.

Co-authored-by: Dmitri Gavrilov <46980826+dmgav@users.noreply.github.com>
Signed-off-by: Thiago Donato Ferreira <thiago.ferreira@lnls.br>
  • Loading branch information
flowln and dmgav committed Feb 19, 2024
1 parent 113a47d commit feb124b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluesky_httpserver/authorization/api_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- type: object
additionalProperties: false
patternProperties:
"^[a-zA-Z_][0-9a-zA-Z_.@]*$":
"^[a-zA-Z_][0-9a-zA-Z_.@-+]*$":
oneOf:
- type: object
additionalProperties: false
Expand Down Expand Up @@ -348,7 +348,7 @@ def get_user_info(self, username):
- type: object
additionalProperties: false
patternProperties:
"^[0-9a-zA-Z_.@]+$":
"^[0-9a-zA-Z_.@-+]+$":
oneOf:
- type: object
additionalProperties: false
Expand Down

0 comments on commit feb124b

Please sign in to comment.