[Example User Plugin] Unable to pass in just one argument, out of order method call #7727
Open
1 of 7 tasks
Labels
not_viper
Temporary label to define bugs that won't affect viper deployments
severity:medium
type:bug
Summary
The way the argument object is set up for the example user provider makes it so you can't pass in just one option. The object you pass in overwrites the defaults object completely.
Another issue was the
getPossibleRoles
method of the ExampleUserProvider, not checking if the login promise has resolved before trying to access the user object.These issues combine to make it so you can never get to the example login form.
Expected vs Current Behavior
You should be able to pass in just one option and methods shouldn't try to access an asynchronously resolved item, before it's been resolved.
Steps to Reproduce
openmct.install(openmct.plugins.example.ExampleUser({ autoLoginUser: false });
Example code to show the root of the issue:
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: