Skip to content

Commit 696880d

Browse files
authored
Fix auth url post refactor (#647)
1 parent a5e1fa5 commit 696880d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/murfey/server/api/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
ALGORITHM = security_config.auth_algorithm or "HS256"
4343
SECRET_KEY = security_config.auth_key or secrets.token_hex(32)
4444
if security_config.auth_type == "password":
45-
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
45+
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")
4646
else:
4747
oauth2_scheme = APIKeyCookie(name=security_config.cookie_key)
4848
if security_config.instrument_auth_type == "token":
49-
instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
49+
instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")
5050
else:
5151
instrument_oauth2_scheme = lambda *args, **kwargs: None
5252
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")

0 commit comments

Comments
 (0)