Fix #630: relative tokenUrl (#636)

* Fix #630: use relative tokenUrl as per the official recommendations

* Improve following review comments

* Fix unmatching backtick

* Improve consistency of authentication backend documentation
This commit is contained in:
François Voron
2021-05-20 08:52:03 +02:00
committed by GitHub
parent a690e82408
commit 455f695f52
10 changed files with 33 additions and 33 deletions

View File

@ -30,7 +30,7 @@ class JWTAuthentication(BaseAuthentication[str]):
self,
secret: str,
lifetime_seconds: int,
tokenUrl: str = "/login",
tokenUrl: str = "auth/jwt/login",
name: str = "jwt",
):
super().__init__(name, logout=False)