Added set(principal) in trySsoLogin