integrate legacy authentication