Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I have done in the past is to authenticate using HTTP authentication headers.
Here are some rough steps to follow:
In config/initializers/devise.rb, set the
http_authenticatableconfig option totrue.Then in your ExtJS login panel, your form submission would look something like this:
The
encodedCredentialsFromFormFieldsvariable is a Base64 encoded string of the form “username:password”. Note the colon (:) between the username and password. I’ve found the Base64 library from http://www.webtoolkit.info/javascript-base64.html to work well.