Small tweaks

This commit is contained in:
François Voron
2021-09-15 16:11:53 +02:00
parent 018771cf73
commit eda3676fd0
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ class CookieAuthentication(
:param cookie_domain: Cookie domain. :param cookie_domain: Cookie domain.
:param cookie_secure: Whether to only send the cookie to the server via SSL request. :param cookie_secure: Whether to only send the cookie to the server via SSL request.
:param cookie_httponly: Whether to prevent access to the cookie via JavaScript. :param cookie_httponly: Whether to prevent access to the cookie via JavaScript.
:param cookie_samesite: Set the SameSite policy of the cookie.
:param name: Name of the backend. It will be used to name the login route. :param name: Name of the backend. It will be used to name the login route.
:param token_audience: List of valid audiences for the JWT. :param token_audience: List of valid audiences for the JWT.
""" """

View File

@ -31,7 +31,7 @@ class JWTAuthentication(
def __init__( def __init__(
self, self,
secret: str, secret: SecretType,
lifetime_seconds: int, lifetime_seconds: int,
tokenUrl: str = "auth/jwt/login", tokenUrl: str = "auth/jwt/login",
name: str = "jwt", name: str = "jwt",