I'm not sure what you are trying to accomplish when you say "send plaint text password over wire" but below [1] is a good tutorial for creating a json api with devise. It uses the old token_authenticable module which has been removed from devise so follow this gist [2] to make modifications.
authentication from json api on Rails with Devise
-
05-10-2022 - |
質問
I use devise and rails app for authenticate users from mobile; so the user sign up/sign in/ sign out from their mobile devices, the problem is for (sign up/sign in) so that the user send his plain text password over the wire, how can I encrypt the plain text password and decrypt it on the server side? I am very new to RoR and Devise.
解決
所属していません StackOverflow