title: Custom authentication strategy for devise
body: <p>I need to write a custom authentication strategy for <a href="https://github.com/plataformatec/devise" rel="noreferrer">https://github.com/plataformatec/devise</a> but there doesn't seem to be any docs. How's it done? </p>