8000 Replace hCaptcha with Altcha #235 by tdruez · Pull Request #278 · aboutcode-org/dejacode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace hCaptcha with Altcha #235 #278

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

Merged
merged 18 commits into from
Mar 31, 2025
Merged

Replace hCaptcha with Altcha #235 #278

merged 18 commits into from
Mar 31, 2025

Conversation

tdruez
Copy link
Contributor
@tdruez tdruez commented Mar 7, 2025

No description provided.

Signed-off-by: tdruez <tdruez@nexb.com>
@pombredanne
Copy link
Member

@tdruez 👍

  • Can we / should we self host the server?
  • What could we do to also deploy the same to SCIO, VCIO and FederatedCode?
  • You are missing an about file for the library

@tdruez
Copy link
Contributor Author
tdruez commented Mar 10, 2025

Can we / should we self host the server?

Yes, this implementation is self-hosted:

There are no dependencies on an external server and no need for extra accounts or API keys.


What could we do to also deploy the same to SCIO, VCIO and FederatedCode?

I'm thinking about packaging this PR content (field and view), once stable, as a Django library, similar to the https://pypi.org/project/django-hcaptcha-field/ we've been using until now.

The implementation in our various apps would be quite simple:

  1. Add the AltchaField to your (registration) form:
from django_altcha import AltchaField

class RegistrationForm(forms.Form):
    altcha_token = AltchaField()
  1. Add the challenge view to your URLs (only required for the self-hosted mode, the alternative is to provide settings to the external server, URL and API key)
from django_altcha import get_altcha_challenge_view

urlpatterns += [
    path("altcha/", get_altcha_challenge_view, name="get_altcha_challenge"),
]

This should probably be released under MIT to match the current license on the Python lib https://github.com/altcha-org/altcha-lib-py and the JS "Web Component" https://github.com/altcha-org/altcha included in the HTML rendered page.


You are missing an about file for the library

Yes, this PR is still in Prototype mode, making sure this approach will work end to end first.
I usually add the .ABOUT files once the set of new libraries, and their versions, are pinned down.


@pombredanne Let me know your take on releasing this as a library as suggested above.

@tdruez tdruez marked this pull request as draft March 10, 2025 04:02
tdruez added 14 commits March 10, 2025 17:49
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez tdruez marked this pull request as ready for review March 31, 2025 10:57
tdruez added 3 commits March 31, 2025 15:12
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez tdruez merged commit 35ad746 into main Mar 31, 2025
4 checks passed
@tdruez tdruez deleted the 235-altcha branch March 31, 2025 11:57
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.

2 participants
0