namsral / multipass

Better authentication for HTTP
BSD 3-Clause "New" or "Revised" License
73 stars 4 forks source link

Add support for wildcards in handles #5

Closed auer-kk closed 7 years ago

auer-kk commented 8 years ago

I would like to whitelist whole domains @tld or even anyone @*. Would this be possible?

namsral commented 8 years ago

Not sure why you'd want to use Multipass when you accept any email address but matching whole domains is a sound idea. This enhancement can be added to the email handle service.

Example with a whole domain, wildcard subdomain and an email address:

multipass {
    handles domain.tld .domain.tld bob@domain.tld
    basepath /multipass
    mail_from "Multipass <no-reply@example.com>"
}

Handle classification:

auer-kk commented 8 years ago

"allow any" could come in handy, if there really are no restrictions or other restrictions like ipfilter apply. This would allow us to always use multipass (since handle is required) so there is only one way of access with centralized tracking/logging regardless of the actual context/scenario.

namsral commented 7 years ago

Commit 7972025a adds support for wildcards in handles.

The pattern syntax is: