Auth helper for Rails apps