pachyderm: github.com/pachyderm/pachyderm/src/server/auth/server Index | Files

package server

import "github.com/pachyderm/pachyderm/src/server/auth/server"

Index

Package Files

api_server.go config.go saml.go

Constants

const (
    // DisableAuthenticationEnvVar specifies an environment variable that, if set, causes
    // Pachyderm authentication to ignore github and authmatically generate a
    // pachyderm token for any username in the AuthenticateRequest.GitHubToken field
    DisableAuthenticationEnvVar = "PACHYDERM_AUTHENTICATION_DISABLED_FOR_TESTING"

    // SamlPort is the port where SAML ID Providers can send auth assertions
    SamlPort = 654
)

func GitHubTokenToUsername Uses

func GitHubTokenToUsername(ctx context.Context, oauthToken string) (string, error)

GitHubTokenToUsername takes a OAuth access token issued by GitHub and uses it discover the username of the user who obtained the code (or verify that the code belongs to githubUsername). This is how Pachyderm currently implements authorization in a production cluster

type APIServer Uses

type APIServer interface {
    auth.APIServer
    txnenv.AuthTransactionServer
}

APIServer represents an auth api server

func NewAuthServer Uses

func NewAuthServer(
    env *serviceenv.ServiceEnv,
    txnEnv *txnenv.TransactionEnv,
    etcdPrefix string,
    public bool,
) (APIServer, error)

NewAuthServer returns an implementation of auth.APIServer.

Package server imports 38 packages (graph) and is imported by 3 packages. Updated 2019-08-13. Refresh now. Tools for package owners.