jimsynz
Ash Core Team
Alembic is pleased to announce the public availability of ash_authentication - an Ash extension which provides a drop-in authentication solution for users of Ash framework. Out of the box it provides password-based authentication (including resets and confirmation), OAuth 2.0 sign in and a set of customisable components for Phoenix LiveView.
If you’re sick of reinventing the wheel instead of adding value to your applications, then come join us on the Ash productivity journey by reading the full announcement, following the Getting Started Guide or engaging us to build your next Elixir, Phoenix or Ash application.
Trending in Announcing
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries.
offset-based pagination with...
New
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
I released Doggo, a collection of unstyled Phoenix components.
https://github.com/woylie/doggo
Features
Unstyled Phoenix components....
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hello
Published a new library - ProcessHub!
ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
I’ve started working on a new library to run SQL queries and do basic business intelligence.
Think “Blazer for Elixir.”
Currently it fe...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
It’s not that it’s vocabulary is too advanced. It’s something worse.
I get lost trying to follow even a paragraph written by Claude. It’...
New
This showed up on my feed.. anyone heard of it? Just hype?
Ox Alpha is a reasoning model designed for coding, sustained ag...
New
Hey folks,
I just published a post about Hologram’s funding and where the project goes next - the short version:
Curiosum as Main Spons...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
dmarcoux
Do you have an estimate of when Ash Authentication will leave beta?
I’m asking since there is this note in the project’s README:
zachdaniel
Hey! So I’ll remove the beta warning from the readme. We don’t see it as beta anymore, but just want people to apply a healthy amount of caution since the package is relatively young and implements a very critical set of flows.
EDIT: beta warning removed, replaced with another warning about taking care when configuring the package, and encouragement to test your implementation.
gastonrey
Hi guys, quick question, I created a json api using ETS data layer but not sure how to serialize the response, actual object contains lot of information that I do not want to expose, I just need id, name, etc. Could find this out on documentation, any help?
zachdaniel
Generally speaking, the way that you hide attributes like that is by marking them as private. For example:
Just keep in mind that private attributes are also not meant to be writable and so are not accepted by actions by default. So if you want a create action that sets those attributes for internal use, you might do something like this:
gastonrey
Thanks for the quick reply!! What I mean is this returned structure:
I would like to just return {id, subject, status}. Also the way body is passed would like to simplify like just subject and status. Couldn´t figure it out on doc.
zachdaniel
Ah, so
ash_json_apiis built to create JSON:API specification compliant APIs: https://jsonapi.org/If you want to create a simple API like that, you’d need to roll your own. Thankfully, a simple phoenix controller (or plug) calling your resource actions should get you what you need. We’re investigating a
simple_json_apiextension (maybe with a better name for it) that will do similar work toash_json_apibut for simpler structures.So at this point, you can’t do what you want with
ash_json_api, but you can still use your resources, which might look something like this: