angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Feature Request]: Add event for when all configs are loaded

Open origooo opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I have a sign in page where I want to list all providers to chose from. I load the configurations through HTTP and naturally that takes some time. My issue is that the sign in component is rendered before the HTTP loader has finished, and the configurations are not yet loaded.

Describe the solution you'd like Fire an event when all configurations are loaded. I believe an appropriate place to fire the event would be in the config service in the either of the functions getOpenIDConfigurations() or prepareAndSaveConfigs() after all the configs are loaded.

Describe alternatives you've considered Using setTimeout() and assuming how long time the requests will demand.

Comparing the number of ConfigLoaded events to how many configs I have and emit an event which can be caught in the sign in component.

Additional context

origooo avatar Dec 20 '23 15:12 origooo