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

Create a user acquisition on OPDS download #26

Closed
Sibyx opened this issue Jan 19, 2024 · 1 comment
Closed

Create a user acquisition on OPDS download #26

Sibyx opened this issue Jan 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Sibyx
Copy link
Collaborator

Sibyx commented Jan 19, 2024

Instead of providing direct entry download an OPDS acquisition link should always create a UserAcquisition instance (according to the EVILFLOWERS_USER_ACQUISITION_MODE setting).

@Sibyx Sibyx added the enhancement New feature or request label Jan 19, 2024
@Sibyx Sibyx added this to the EvilFlowers OPDS Server v1.0 milestone Jan 19, 2024
@Sibyx
Copy link
Collaborator Author

Sibyx commented Jan 28, 2024

Resolved by introducing EVILFLOWERS_ENFORCE_USER_ACQUISITIONS environment variable. If this setting is true (1) the access to the /v1/data/acquisitions/<uuid:acquisition_id> will produce to HTTP 303 - See Other redirect to the UserAcquisition created according to the EVILFLOWERS_USER_ACQUISITION_MODE

@Sibyx Sibyx closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant