TLPORTAL-50: authn fixes for gems and debugging
TLPORTAL-50: authn fixes for gems and debugging