Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better debug
Browse files Browse the repository at this point in the history
NotChristianGarcia committed Nov 27, 2024
1 parent e69feb6 commit 588a8d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/models_pods.py
Original file line number Diff line number Diff line change
@@ -132,11 +132,11 @@ def check_tapis_auth_forward_cookies(cls, v):
def check_tapis_auth_return_path(cls, v):
if v:
# Regex match to ensure url is safe with only [A-z0-9.-/] chars.
res = re.fullmatch(r'[a-z][a-z0-9.-/]+', v)
res = re.fullmatch(r'[A-Za-z][a-z0-9.-_/]+', v)
if not res:
raise ValueError(f"networking.tapis_auth_return_path can only contain lowercase alphanumeric characters, periods, forward-slash, and hyphens.")
raise ValueError(f"networking.tapis_auth_return_path can only contain alphanumeric characters, periods, forward-slash, underscores, and hyphens. Got {v}")
if len(v) > 180:
raise ValueError(f"networking.tapis_auth_return_path length must be below 180 characters. Inputted length: {len(v)}")
raise ValueError(f"networking.tapis_auth_return_path length must be below 180 characters. Got length: {len(v)}")
return v

@validator('tapis_auth_allowed_users')

0 comments on commit 588a8d2

Please sign in to comment.