Hi, I am in the process of creating af SSO solution for a client. I want to use auth0. My first task is to use it with a Vue frontend with an API backend. I have the basic authentication part up and running.
I was thinking about using the ID Token to embed extra user-specific information, like an organization ID. This ID could then be used on the API side to decide which organization the current principal belongs to, without making any extra calls.
I have read a lot of the articles here but I fail to find something similar so I am suspecting that I am thinking about this in the wrong way.
Now I am considering creating my own database where I can map the sub claim (auth0 user id), to the values I need on the API side.
What do you think? Is this the way to do it?