Changes to support more flexible post authentication processing.