LPS-39827

LPS-39827 Fix jaas to maintain context