src/backend/doc/A-and-A/auth.md
An "Actor" is an entity that can be authenticated. The following types of actors are currently supported by Puter:
puter.site domain or another origin and is identified by a user's UUID
and an app's UUID together.puter.site website accessing Puter's API.system user.puter.site
subdomain.There have so far been three iterations of the authentication middleware:
src/backend/src/middleware/auth.jssrc/backend/src/middleware/auth2.jssrc/backend/src/middleware/configurable_auth.jsThe newest implementation is configurable_auth and eventually the other
two will be removed. There is no legacy behavior involved:
auth was rewritten to use auth2auth2 was rewritten to use configurable_authThe configurable_auth middleware accepts a parameter that can be specified
if an endpoint is optionally authenticated. In this case, the request's
actor will be undefined if there was no information for authentication.