-
Notifications
You must be signed in to change notification settings - Fork 616
Closed
Description
This is more like a feature request than issue. I would like to suggest to define ExternalAuth type similar to already defined PlainAuth. When using TLS and client certificate it is required to return authentication mechanism EXTERNAL so the username will be taken from certificate. Defining the type and providing example in godoc.org reference will help users who try to authenticate with client certificate.
It could be something similar to:
type ExternalAuth struct {
}
func (auth *ExternalAuth) Mechanism() string {
return "EXTERNAL"
}
func (auth *ExternalAuth) Response() string {
return ""
}