How to pass User Auth Context and Mandate to DataSource queries as options?- passthrough authentication

Is the User Context / Auth Context passed down to the DataSource?

Is it the Mandate Information passed down in the optiones to the queries?

If yes how can it be accessed?
Is it possible to passthrough the authentication to the database?

I’d like to restrict data access based on a users rights. This can either be done through a custom datasource or by the database permissions if the user context gets passed through to the database. Eg. thinking of Azure or AWS, you can authenticate with a ActiveDirectory User to the database.