<@U04UQ68083H> Is there any way to handle guest/an...
# ory-copilot
s
@chilly-king-10285 Is there any way to handle guest/anonymous accounts in kratos? The use case is users of my platform that have not created an account yet, but I want them to still be able use the platform in a limited way
c
A message from kapa.ai
Yes, Ory Kratos provides a way to handle guest or anonymous accounts. This is done using the Anonymous Authenticator. This is particularly useful for endpoints that don't require login, such as the registration screen. Here is an example of how to enable it in the Ory Oathkeeper configuration:
Copy code
yaml # ...   authenticators:    anonymous:    enabled: true    config:    subject: guest   # ...
This configuration enables the Anonymous Authenticator and sets the subject to "guest". This means that any user accessing the endpoints protected by this authenticator will be treated as a guest. For more details, you can refer to the [Ory Oathkeeper documentation](https://www.ory.sh/docs/oathkeeper/pipeline/authn#anonymous).