Sign in with ethereum and ash authentication

Hey guys, so I’m implementing SIWE (GitHub - spruceid/siwe: Sign-In with Ethereum library) flow, now I’m not sure if I should edit password strategy for authentication or should I create custom one. I guess its pretty similar to password one but instead receiving username/password I do receive message, and signature from user (and have nonce in plug to validate). After validating message, signature and nonce I’ve got user address which is my identity field. Any help is much appreciated, thanks :folded_hands:

You could create a custom strategy or just hand roll it with some plugs etc. all that Ash cares about at the end of the day is that an actor is provided to run actions.

2 Likes