We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e1fa5 commit 696880dCopy full SHA for 696880d
src/murfey/server/api/auth.py
@@ -42,11 +42,11 @@
42
ALGORITHM = security_config.auth_algorithm or "HS256"
43
SECRET_KEY = security_config.auth_key or secrets.token_hex(32)
44
if security_config.auth_type == "password":
45
- oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
+ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")
46
else:
47
oauth2_scheme = APIKeyCookie(name=security_config.cookie_key)
48
if security_config.instrument_auth_type == "token":
49
- instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
+ instrument_oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")
50
51
instrument_oauth2_scheme = lambda *args, **kwargs: None
52
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
0 commit comments