Hi Brian,
What type of security are you using? OAuth or Token based? If token based, then we have a sample in the QML Sample app under security > Token based security that shows how to make a connection to the identity manager singleton, and prompt a sign in dialog when there is a request for credentials. Let me know if you are using OAuth, and I will see if I can find an example for you.
Thanks,
Luke