exrecaptcha alternatives and similar packages
Based on the "Framework Components" category.
Alternatively, view exrecaptcha alternatives based on common mentions on social networks and blogs.
-
ex_admin
ExAdmin is an auto administration package for Elixir and the Phoenix Framework -
phoenix_html
Phoenix.HTML functions for working with HTML strings and templates -
phoenix_ecto
Phoenix and Ecto integration with support for concurrent acceptance testing -
react_phoenix
Make rendering React.js components in Phoenix easy -
absinthe_plug
Plug support for Absinthe, the GraphQL toolkit for Elixir -
phoenix_live_reload
Provides live-reload functionality for Phoenix -
params
Easy parameters validation/casting with Ecto.Schema, akin to Rails' strong parameters. -
phoenix_pubsub_redis
The Redis PubSub adapter for the Phoenix framework -
dayron
A repository `similar` to Ecto.Repo that maps to an underlying http client, sending requests to an external rest api instead of a database -
rummage_phoenix
Full Phoenix Support for Rummage. It can be used for searching, sorting and paginating collections in phoenix. -
phoenix_token_auth
Token authentication solution for Phoenix. Useful for APIs for e.g. single page apps. -
sentinel
DEPRECATED - Phoenix Authentication library that wraps Guardian for extra functionality -
phx_component_helpers
Extensible Phoenix liveview components, without boilerplate -
plug_rails_cookie_session_store
Rails compatible Plug session store -
multiverse
Elixir package that allows to add compatibility layers via API gateways. -
filterable
Filtering from incoming params in Elixir/Ecto/Phoenix with easy to use DSL. -
access pass
provides a full user authentication experience for an API. Includes login,logout,register,forgot password, forgot username, confirmation email and all that other good stuff. Includes plug for checking for authenticated users and macro for generating the required routes. -
scrivener_headers
Scrivener pagination with headers and web linking -
better_params
Cleaner request parameters in Elixir web applications ๐ -
phoenix_pubsub_rabbitmq
RabbitMQ adapter for Phoenix's PubSub layer -
plug_checkup
PlugCheckup provides a Plug for adding simple health checks to your app -
plug_rest
REST behaviour and Plug router for hypermedia web applications in Elixir -
Votex
Implements vote / like / follow functionality for Ecto models in Elixir. Inspired from Acts as Votable gem in Ruby on Rails -
trailing_format_plug
An elixir plug to support legacy APIs that use a rails-like trailing format: http://api.dev/resources.json -
phoenix_html_simplified_helpers
Some helpers for phoenix html( truncate, time_ago_in_words, number_with_delimiter, url_for, current_page? )
ONLYOFFICE Docs โ document collaboration in your environment
Do you think we are missing an alternative of exrecaptcha or a related project?
Popular Comparisons
README
Exrecaptcha
Simple ReCaptcha display/verify code for Elixir applications. Using Exrecaptcha with a CMS such as Phoenix is easy.
Installation
Set as a dep in your mix.exs and ensure it is running with your app:
def application do
[
# ...
applications: [:phoenix, :cowboy, :logger, :exrecaptcha]
# ...
]
end
defp deps do
[
{:phoenix, "0.5.0"},
{:cowboy, "~> 1.0.0"},
#...
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.0"},
{:exrecaptcha, "~> 0.0.3"}
]
end
And fetch your project's dependencies:
$ mix deps.get
Config
In your application's config.exs :
config :exrecaptcha,
api_config: %{ verify_url: "http://www.google.com/recaptcha/api/verify",
public_key: "YOUR_PUBLIC_KEY",
private_key: "YOUR_PRIVATE_KEY" }
You can use https instead of http for the verify_url
.
Usage
View
Put this code somewhere in your html template:
<form id="loginForm" name="newuser" method="post" action="/users">
...
<%= safe Exrecaptcha.display %>
...
</form>
Controller
Provided you've set the routing properly, you just have to call
# your post method should route you here:
def create(conn, params) do
# do stuff, then check for the validity of the captcha
:ok = verify_captcha(conn, params)
end
defp verify_captcha(conn, %{"recaptcha_challenge_field" => challenge,
"recaptcha_response_field" => response}) do
remote_ip = conn.remote_ip
Exrecaptcha.verify(remote_ip, challenge, response)
end
TODO
- No option for recaptcha display can be set yet
- Error handling is quite inexistent (throws RuntimeError)
- No tests
Changelog
- 0.0.3: Update HTTPotion dependency, avoiding elixir version warnings
- 0.0.2: Use HTTPS by default
- 0.0.1: Initial release
Licensing
Copyright ยฉ 2014 Adrien Anselme and contributors This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.
*Note that all licence references and agreements mentioned in the exrecaptcha README section above
are relevant to that project's source code only.