Skip to content

Feature Request : caddy-security #9

Description

@danmed

https://github.com/greenpau/caddy-security

Ability to utilise caddy-security when caddy is built with

xcaddy build --with github.com/greenpau/caddy-security

the Caddyfile contains the following config at the top :

        security {
                local identity store localdb {
                        realm local
                        path /etc/caddy/auth/local/users.json
                }
                authentication portal myportal {
                        enable identity store localdb
                        cookie domain domain.co.uk
                        cookie lifetime 86400 # 24 hours in seconds
                        transform user {
                                match email user@gmail.com
                                action add role authp/user
                        }
                }
                authorization policy admin_policy {
                        set auth url https://auth.domain.co.uk
                        allow roles authp/user
                }
        }

and then in each subdomain that requires authentication :

authorize with admin_policy

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions