url
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
8224c1334a
commit
387fff9798
1 changed files with 4 additions and 1 deletions
|
|
@ -43,6 +43,9 @@ Middleware authorizeV2(UserManager userManager, JwtService jwtService) {
|
|||
if (!normalizedPath.startsWith('/')) {
|
||||
normalizedPath = '/$normalizedPath';
|
||||
}
|
||||
if (normalizedPath.endsWith('/')) {
|
||||
normalizedPath = normalizedPath.substring(0, normalizedPath.length - 1);
|
||||
}
|
||||
|
||||
// Check if this is a telegram-bot endpoint - skip JWT auth (handled by API key middleware)
|
||||
if (normalizedPath.startsWith('/telegram-bot/')) {
|
||||
|
|
@ -56,7 +59,7 @@ Middleware authorizeV2(UserManager userManager, JwtService jwtService) {
|
|||
return await innerHandler(request);
|
||||
}
|
||||
// Check for dynamic auth paths (e.g., /auth/telegram/code-status/<code>)
|
||||
if (normalizedPath.startsWith('/auth/telegram/code-status/')
|
||||
if (normalizedPath.startsWith('/auth/telegram/code-status')
|
||||
|| normalizedPath.startsWith('/admin/auth/request-code')
|
||||
|| normalizedPath.startsWith('/admin/auth/verify-code')) {
|
||||
// Code status endpoint is public (used before authentication)
|
||||
|
|
|
|||
Loading…
Reference in a new issue