It's more the fact I'm trying to do multiple custom dashboards. These dashboards each possess their own login for separate users and display different data. There is no wish for them to be able to access the /ui backend as some of the dashboards coded are used for realtime data display on a tv for example.
The fact that you need display different data for different users should not preclude you from using /ui. You can hide menu items for different users, set permissions on data points and set user's home pages.
If you setup the main /ui app this way it will save you a lot of time maintaining separate custom applications.
However, it would be nice to be able to implement the same code for this into the custom dashboards so that users can configure an auto-login should they wish to.
If you still want to make separate applications you can copy the
autoLoginSettings component from the
ui/components folder into your custom app. You will need to register it as part of the application in
app.js. This component just displays a username/password form and saves the credentials to local storage/cookies.
The actual auto-login code is in the User service and is called from the bottom of
app.js. You can change the prefix that it is used to store/retrieve data from local storage if needed, let me know if you do.