I'm working on a WebApp project which includes a system of Users. For each of these users I need a calendar of events that the user can interact with (CRUD operations). I wish to use the Google Calendar API to achieve this, however I'm uncertain about how to store the calendars for my users. The easiest way would be requiring the users to log in with a Google account, and creating a new Calendar for them. However this goes againsts requirements of the project since there is already a user system in place. What would be the best-practice way to implement this, without directly requiring users to log in with Google? The way I see it I have a couple of options:
- Having a central service account which contains one calendar per user (Seems naive)
- Using Googles ADMIN SDK to create Google accounts for my users behind the scenes (Is this even possible?)
- Somehow storing the Calendars in a database myself, and mostly using Google Calendar to create and modify the event objects thereafter exporting them. (Seems unnecessarily complicated)
My backend uses Java to make the API calls to Google Calendar.