Dynamic credentials and SSO integration

Describe the problem/error/question

We want to build dynamic workflows. For example Google calendar. Currently what we did is that we have one child workflow including Google calendar node and a execute workflow trigger. And in parent workflow we just implement the webhook node which brings in credentials which we dynamically created per user via n8n API in json request body. This webhook is then connected to Execute workflow node, in short over webhook we send what credential calendar must use in child workflow. And this is working OK. Thing is that we now want to have google calendar for any user in our company without this that each user needs to provide his own credentials (clientId, clientSecret). Is this achievable using SSO provided in n8n settings? And how it’ll impact our workflow now, what changes we must apply? I mean with SSO active we wont need creating new credentials per user via API anymore? Second it’s sad that we cannot test SSO in free demo. Third, you can see my workflow if there is any better idea how to make it simpler please write.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.65.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • Operating system:windows

hello @t_u

maybe you can do it via the service account. As it doesn’t require user consent. But I don’t know if calendar API supports a service account

This is not just about Google calendar it may be any other service from Google. Also I may have any other platform to integrate via SSO not just Goole. I’m just asking if someone has the similar workflow or has any idea better then mine. I just started using the n8n and testing stuff and I’m still chosing between n8n and Pipedream. Didn’t made the decision yet. Just want to know if this I’ve explained is possible to continue building new workflows. But, SSO integration is must have, just want to know how the process would look like with it.

@barn4k but thanks for your reply! I thought no one will notice my question :smiley: