Skip to content

Commit

Permalink
Downgraded to coverage < 6
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Nov 4, 2021
1 parent f30e80b commit 81e3997
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
6 changes: 0 additions & 6 deletions tests/test_csrftoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ def test_csrftoken(app, Given, redis):
app.settings.merge('''
auth:
csrf:
key: yhttp-csrf-token
secure: true
httponly: true
maxage: 60 # 1 Minute
samesite: Strict
domain: example.com
path:
''')
app.ready()

Expand Down
13 changes: 0 additions & 13 deletions tests/test_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,7 @@ def test_oauth2_state(app, Given, redis):
app.settings.merge('''
auth:
csrf:
key: yhttp-csrf-token
secure: true
httponly: true
maxage: 60 # 1 Minute
samesite: Strict
domain: example.com
path:
oauth2:
state:
algorithm: HS256
secret: quxquux
maxage: 60 # 1 Minute
leeway: 10 # seconds
''')
app.ready()

Expand Down
16 changes: 16 additions & 0 deletions yhttp/ext/auth/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ class Authenticator:
path:
samesite: Strict
csrf:
key: yhttp-csrf-token
secure: true
httponly: true
maxage: 60 # 1 Minute
samesite: Strict
domain:
path:
oauth2:
state:
algorithm: HS256
secret: quxquux
maxage: 60 # 1 Minute
leeway: 10 # seconds
''')

def __init__(self, settings=None):
Expand Down

0 comments on commit 81e3997

Please sign in to comment.