Skip to content

Commit fd80590

Browse files
🐛 Bug: fix require_app_auth matches unexpected routes (#42)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
1 parent f6ccffa commit fd80590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

githubkit/auth/_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
BYPASS_REGEX = re.compile(r"/login/(oauth/access_token|device/code)$")
29-
APP_AUTH_REGEX = re.compile(rf"(?:{'|'.join(APP_ROUTES)})[^/]*$", re.I)
29+
APP_AUTH_REGEX = re.compile(rf"^(?:{'|'.join(APP_ROUTES)})$", re.I)
3030
BASIC_AUTH_REGEX = re.compile(r"/applications/[^/]+/(token|grant)s?")
3131
OAUTH_BASE_REGEX = re.compile(r"^https://(api\.)?github\.com/?$")
3232

0 commit comments

Comments
 (0)