Correct, this error is caused whenever I edit any of the login scripts in oxtrust (which are configured as database sourced not external file) which causes all scripts to be destroyed and reinitialized. Since the authentication server is under normal use when this occurs, there are various users in various states of authentication when the reload occurs. If the first request that arrives after script reload is to authenticate (login button pressed on an already loaded page) and not a page load (which triggers prepareForStep), it will be referencing the uninitialized property 'registeredProviders' which is only initialized in prepareForStep. My suggestion is to initialize that property in the init function so that it doesn't matter which request arrives first on script reload, it will already have been initialized.