registry/internal/auth/types.go

19 lines
No EOL
576 B
Go

package auth
// Method represents the authentication method used
type Method string
const (
// GitHub OAuth authentication (access token)
MethodGitHubAT Method = "github-at"
// GitHub Actions OIDC authentication
MethodGitHubOIDC Method = "github-oidc"
// Generic OIDC authentication
MethodOIDC Method = "oidc"
// DNS-based public/private key authentication
MethodDNS Method = "dns"
// HTTP-based public/private key authentication
MethodHTTP Method = "http"
// No authentication - should only be used for local development and testing
MethodNone Method = "none"
)