fix: add RFC 8707 resource validation to OAuth client (#2069)
This commit is contained in:
parent
78ddff022b
commit
67458948ae
1 changed files with 102 additions and 18 deletions
|
|
@ -95,7 +95,7 @@ class TestCheckResourceAllowed:
|
|||
"""Trailing slashes should be handled correctly."""
|
||||
# With and without trailing slashes
|
||||
assert check_resource_allowed("https://example.com/api/", "https://example.com/api") is True
|
||||
assert check_resource_allowed("https://example.com/api", "https://example.com/api/") is False
|
||||
assert check_resource_allowed("https://example.com/api", "https://example.com/api/") is True
|
||||
assert check_resource_allowed("https://example.com/api/v1", "https://example.com/api") is True
|
||||
assert check_resource_allowed("https://example.com/api/v1", "https://example.com/api/") is True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue