Devise extension to act as a cas server