Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customize deriva_ctx.deriva_response.set_cookie to observe webauthn2_… #86

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

karlcz
Copy link
Contributor

@karlcz karlcz commented Mar 20, 2024

…config

detect default (None) keyword params and replace with values in webauthn2_config before passing to real set_cookie method

  • web_cookie_path: changes default path string
  • web_cookie_secure: changes default secure boolean
  • web_cookie_domain: adds new default logic

for the new domain field, three values are enabled:

  • None: scope to the HTTP host (default)
  • True: scope to the HTTP host w/ subdomain matching
  • type str: an explicit domain, prefix with '.' for subdomain matching

…config

detect default (None) keyword params and replace with values in
webauthn2_config before passing to real set_cookie method

- web_cookie_path: changes default path string
- web_cookie_secure: changes default secure boolean
- web_cookie_domain: adds new default logic

for the new domain field, three values are enabled:

- None: scope to the HTTP host (default)
- True: scope to the HTTP host w/ subdomain matching
- type str: an explicit domain, prefix with '.' for subdomain matching
@karlcz karlcz merged commit e39c450 into master Apr 8, 2024
1 check passed
@karlcz karlcz deleted the configurable_set_cookie branch April 8, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant