How to Share the Same Authentication Session Between The App Studio and External Website

I’m trying to use the same login session between the app studio and my website. I noticed this happens automatically when using Google authentication. How can I achieve this natively without relying on third-party providers?

I guess it should work if both are hosted on the same domain as they can then share the auth cookie.

If not, I think you need an external auth provider as you already mentioned, which both then have to trust.

But maybe you can make Directus itself the auth provider using this openid extension. Related Github discussion

Didn’t use or try this tho, so big question if it’s working at all. Another hurdle might be to configure it seamless, so that you don’t have to redirect the user to the Directus/Openid server login page for authentication.