Refactoring authentication framework. Adding constants. and changing variable types of authentication request context