Single File Ash Authentication

https://gist.github.com/TwistingTwists/7e17076db32e22b4e46e8fa15e3ae64c This is an attempt to have a single file AshAuthentication working with password strategy. however, on the localhost:4000/register route i cannot see any form. Should I build one?
Gist
single file with ash authentication
single file with ash authentication. GitHub Gist: instantly share code, notes, and snippets.
8 Replies
abeeshake456
abeeshake456OP4mo ago
No description
abeeshake456
abeeshake456OP4mo ago
This is what I see.
ZachDaniel
ZachDaniel4mo ago
you have to configure ash_domains for the otp app I think
abeeshake456
abeeshake456OP4mo ago
how? Application.put_env(:my_app, ash_domains: [MyApp.Domain]) ?
ZachDaniel
ZachDaniel4mo ago
Actually, try specifying the resources option to sign_in_route resources: [User]
abeeshake456
abeeshake456OP4mo ago
Got a new error. Hehe on /register endpoint.
cookie store expects conn.secret_key_base to be at least 64 bytes
cookie store expects conn.secret_key_base to be at least 64 bytes
I think this has to do with liveview as well.
ZachDaniel
ZachDaniel4mo ago
yeah thats a phoenix thing, you'll want to configure that up front
eshnil
eshnil4mo ago
@abeeshake456 I'm going to test with the magic_link auth strategy which might be simpler.

Did you find this page helpful?