proofzero / rollupid

Open Source and OIDC compliant digital identity for the private web
https://rollup.id
Apache License 2.0
140 stars 13 forks source link

feat(auth): session server #1906

Open maurerbot opened 1 year ago

maurerbot commented 1 year ago

Why

Ability to have a managed sessions so users don't have to worry about token management and we can build client side JS libraries to support "drop in" auth.

What

If a developer turns on and configures custom hostnames they can now enable managed sessions. This works by setting a session cookie on the custom hostnamed version of auth to the parent domain (e.g, auth.example.com sets session cookie on example.com and subdomains).

Customer apps can the request information or make api calls directly from their clients without having to manage tokens, credentials, etc.

NOTE: choosing to use managed sessions means that you cannot use OAuth callback and this doesn't mean you can authenticate in third-party app (you still need to redirect to CNAMEd auth app to complete the auth flow)

How

Notes

picassobanana commented 6 months ago

Figma Link

Preview:

Custom Domain Image

OAuth Image