Access the secret

You need to log in to access the secret!

Try to access it using one of the following links to test access control powered by Authelia.
You can also log off by visiting the following link.

List of users

Here is the list of credentials you can log in with to test access control.

Once first factor is passed, you will need to follow the links to register a secret for the second factor.
Authelia will send you a fictituous email that will be in the file /tmp/notifications/notification.txt.
It will provide you with the link to complete the registration allowing you to authenticate with 2-factor.

Access control rules

These rules are extracted from the configuration file config.template.yml.

# Default policy can either be `allow` or `deny`.
# It is the policy applied to any resource if it has not been overriden
# in the `any`, `groups` or `users` category.

default_policy: deny

# The rules that apply to anyone.
# The value is a list of rules.

any:
  - domain: public.test.local
    policy: allow

# Group-based rules. The key is a group name and the value
# is a list of rules.

groups:
  admin:
    # All resources in all domains
    - domain: '*.test.local'
      policy: allow
    # Except mx2.mail.test.local (it restricts the first rule)
    - domain: 'mx2.mail.test.local'
      policy: deny
  dev:
    - domain: dev.test.local
      policy: allow
      resources:
        - '^/groups/dev/.*$'

# User-based rules. The key is a user name and the value
# is a list of rules.

users:
  john:
    - domain: dev.test.local
      policy: allow
      resources:
        - '^/users/john/.*$' 
  harry:
    - domain: dev.test.local
      policy: allow
      resources:
        - '^/users/harry/.*$'
  bob:
    - domain: '*.mail.test.local'
      policy: allow
    - domain: 'dev.test.local'
      policy: allow
      resources:
        - '^/users/bob/.*$'
    - domain: 'dev.test.local'
      policy: allow
      resources:
        - '^/users/harry/.*$'