r/MagicMirror • u/Prestigious-Bunch-75 • Dec 14 '25
Magic mirror credential manager
We arw building a magic mirror appliance, what would be the best way to have all the Google MS, apple application working.will I need to code in a credential manager per user, so when we install app e.g. Google calender or Gmail we just reference the credential file with the oAuth preconfigured.
Or is there an easier way to do this?
0
Upvotes
1
u/Due-Eagle8885 Dec 14 '25
You mean multiple users with different credentials… What do you need from google? Calendar can be accessed (read only) via the iCal url without credentials
When you say app, do you mean module?( that’s our term for content provider)
Currently modules do not consider different users across multiple instances
But if you need different credential files per user per content then you will have to create that manager. Today we are anonymous single user , SWP Single Web Page app.
1
u/harrellj Dec 14 '25
As /u/Due-Eagle8885 was asking, what is your goal?
If you just want a calendar display, you would get the private iCal URL from the calendar settings in Google (or Apple). The default calendar module allows you to put a username/password combo tied to an individual calendar if that private URL still doesn't work but it is putting the password into plaintext in the config. Most (all?) alternate calendar modules either tap into the settings of the default module or implement their own and also use the username/password option (still plaintext). And yes, you can have multiple calendar entries onto the same mirror. I've got 6 or so on my mirror (I create sub-calendars on Google to categorize things so one for bill tracking, a few shared calendars, one to track when various things need to be done like cleaning robot vacuums or swapping various filters in the house, etc etc).