Created attachment 110788 [details] [review] Implement getCredentials I removed the previous patch and posted five new patches which implement the feature described in this bug report. It's all still to be tested, but I think it's ready for a preliminary code review. I also extended the comments and commit messages to explain why we are doing what.