Crowdhailer
Creator of Raxx
Raxx.Session - manage client sessions, plug compatible
Example
@session_config Raxx.Session.config(
key: "my_session",
store: Raxx.Session.SignedCookie,
secret_key_base: String.duplicate("squirrel", 8),
salt: "epsom"
)
# Or configure at runtime and pass as state argument to server.
def handle_request(request, _state) do
{:ok, session} = Raxx.Session.fetch(request, @session_config)
# ... processing
response(:ok)
|> Raxx.Session.put(updated_session, @session_config)
# ... something went wrong
response(:forbiddent)
|> Raxx.Session.drop(@session_config)
end
Plug compatibility.
By using the SignedCookie store your sessions are compatible with verified plug sessions.
I am looking for help to port the encrypted plug sessions to this library and create a second store for EncryptedCookie hopefully I will be able to announce that below soon’
Most Liked
Crowdhailer
Creator of Raxx
Raxx.Session.EncryptedCookie
Release 0.2.3 adds support for adding encrypted sessions in addition to signed sessions.
Example configuration:
Raxx.Session.config(
store: Raxx.Session.EncryptedCookie,
secret_key_base: secret_key_base,
key: key,
encryption_salt: encryption_salt,
signing_salt: signing_salt
)
These sessions are also compatible with Plug.Sessions set up with the same secret_key_base encryption_salt and signing_salt
1
Popular in Libraries
Earmark is a pure-Elixir Markdown converter.
It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
New
I’ve been working on two packages (not on hex.pm yet) to build admin interfaces for phoenix apps:
bureaucrat - which contains a bunch ...
New
Hey guyz
We at @aviabird are working on a payment library in elixir/phoenix. We are targeting March 2018 to add 56 Gateways to it.
Have...
New
Hello all,
I’ve been working on Svonix - a library for quickly integrating Svelte components into Phoenix views. It’s a much-needed succ...
New
I’m excited to announce that TaxJar has developed and open-sourced DateTimeParser. We developed it because we found a need to parse user ...
New
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
Hey everyone
i’ve developed a library for Jalaali calendar for elixir which supports converting Gregorian dates to Jalaali and vice vers...
New
While not as prevalent as in imperative languages, arrays (collections with efficient random element access) are still very useful in Eli...
New
Hi, I wanted share a small library we at Revelry Labs made for rendering react components from the server side. There are instructions fo...
New
Here is my first stab at this. README pasted below.
https://github.com/Hal9000/elixir_random
Comments and critiques are welcome.
Th...
New
Other popular topics
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New







