Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pyramid_jwt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def set_jwt_cookie_authentication_policy(
json_encoder=None,
audience=None,
cookie_name=None,
https_only=True,
https_only=None,
reissue_time=None,
cookie_path=None,
):
Expand Down
3 changes: 2 additions & 1 deletion src/pyramid_jwt/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import jwt
from pyramid.renderers import JSON
from pyramid.settings import asbool
from webob.cookies import CookieProfile
from zope.interface import implementer
from pyramid.authentication import CallbackAuthenticationPolicy
Expand Down Expand Up @@ -187,7 +188,7 @@ def __init__(
audience,
)

self.https_only = https_only
self.https_only = asbool(https_only)
self.cookie_name = cookie_name or "Authorization"
self.max_age = self.expiration and self.expiration.total_seconds()

Expand Down