Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/endpoints/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def init_oidc(form_data):
)
if not re.match(r"^[-a-z0-9]+$", origin_state):
return quart.Response(status=400, response="Origin state ID MUST be hex or alphanumerical (dashes are allowed)")
if not redirect_uri or not re.match(r"https://([-0-9a-zA-Z\.]+)", redirect_uri):
if not redirect_uri or not re.match(r"https://([-0-9a-zA-Z.]+)", redirect_uri):
return quart.Response(
status=400,
response="Invalid redirect URI specified. MUST be of format https://foo.bar/baz.html and MUST be https",
Expand Down