Refactored to share common logic found in AuthAttribute, and also allows auth protected razor pages to be redirected back to after successful login.
Merge pull request #902 from Its-Tyson/razor-auth-redirect-update

Refactored to share common logic found in AuthAttribute