Skip to content

ExternalAuth type and interface definition #355

@damianjaniszewski

Description

@damianjaniszewski

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 ""
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions