Account Store CRUD added to applications :rails and :sinatra

Ok, so i've implemented the Account Store CRUD in the Rails and Sinatra application. The reason why i haven't implemented it in the omniauth apps is because i believe the stormpath-omniauth gem isn't working as supposed to (correct me if I'm wrong):

Why is the user entering its credentials in the application, rather than being redirected to stormpath.com, logging in there, and then being redirected back to the application? Isn't that the whole purpose of omniauth, not giving your application that kind of information, but rather keeping it in one secure place?

I have also ported the apps to Rails 4 ( checked it before with Les).