Programmatically check for type of Authentication.