dmitriid
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
If I ever come around this, I should definitely do a PR against the docs
15 replies
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
Yup, there's magic 🙂
15 replies
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
No worries 🙂 It took me a while to understand how it's wired. I think that's all the modules you need
15 replies
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
This is the full setup I have: https://gist.github.com/dmitriid/2ae3ae7737c640e9a5de42e79bef1bfb
For
I hope this helps.
15 replies
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
(it took me a while to wrap my head around, too 🙂 )
15 replies
AEAsh Elixir
•Created by samoorai on 6/2/2023 in #support
Auth0 confusion
In
router.ex
:
- Add use AshAuthentication.Phoenix.Router
to the module
- In whichever scope you use for auth, add the folliwing, e.g.
15 replies
AEAsh Elixir
•Created by dmitriid on 4/10/2023 in #support
protocol Enumerable not implemented for #Ash.Changeset
@Zach Daniel thank you!
11 replies
AEAsh Elixir
•Created by dmitriid on 4/10/2023 in #support
protocol Enumerable not implemented for #Ash.Changeset
Ahahaha. YES. I should read the docs more carefully
11 replies
AEAsh Elixir
•Created by dmitriid on 4/10/2023 in #support
protocol Enumerable not implemented for #Ash.Changeset
That's probably the reason 🙂
11 replies
AEAsh Elixir
•Created by dmitriid on 4/10/2023 in #support
protocol Enumerable not implemented for #Ash.Changeset
Oh my 😄
11 replies
AEAsh Elixir
•Created by dmitriid on 4/10/2023 in #support
protocol Enumerable not implemented for #Ash.Changeset
Resource the second
This one is somewhat trickier as it only contains relationships to other resources:
Using it:
11 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
Forgot to say thank you 🙂 Thank you!
27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
No worries. This is brilliant anyway 🙂
27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
And it looks like Ash.Query returns
{:error, "is invalid"}
in this case27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
argument :user_id, :uuid, allow_nil?: false
This should be :integer
because my ids are integers27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
I figured it out
27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
Ah
27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
Hmmm.. Something's funky 🙂
27 replies
AEAsh Elixir
•Created by dmitriid on 4/7/2023 in #support
Lookups/calcultions based on has_many relationships
Ah. Brilliant. This looks exactly like what I'd want.
Only now I have no idea how to load this calculation with the arguments 🙂
27 replies