Versions in this module Expand all Collapse all v1 v1.7.2 Sep 2, 2021 Changes in this version + const ACLNA + const ACLNode + const ACLReader + const ACLUser + const ACLWriter + const AuthAdmin + const AuthEdgeNode + const AuthFailed + const AuthNodeUser + const AuthService + const AuthSyncAdmin + const AuthUser + const SPIRequestIdentityHeader + var Store storage.Storage + func AddIdentityToSPIRequest(request *http.Request, requestURL string) + func Authenticate(request *http.Request) (int, string, string) + func CanUserAccessAllObjects(request *http.Request, orgID, objectType string) (bool, int, string) + func CanUserCreateObject(request *http.Request, orgID string, metaData *common.MetaData) (bool, string, string) + func CheckAddACLInputFormat(aclType string, aclInputList []common.ACLentry) (*[]common.ACLentry, error) + func CheckObjectCanBeModifiedByUser(userID, orgID, objectType string, aclUserType string) bool + func CheckObjectTypesCanBeAccessByGivenUser(orgID string, aclUserType string, aclUsername string) (bool, []string, error) + func CheckRemoveACLInputFormat(aclInputList []common.ACLentry) error + func GetACLUserType(authCode int) string + func KeyandSecretForURL(url string) (string, string) + func SetAuthentication(auth Authentication) + func Start() + func Stop() + func ValidateSPIRequestIdentity(request *http.Request) (bool, string, string, string) + type Authentication interface + Authenticate func(request *http.Request) (int, string, string) + KeyandSecretForURL func(url string) (string, string) + Start func() + type CSSCredentials struct + AppKey string + AppSecret string + type CredentialInfo struct + OrgID string + Secret string + Type string + Username string + type DummyAuthenticate struct + func (auth *DummyAuthenticate) Authenticate(request *http.Request) (int, string, string) + func (auth *DummyAuthenticate) KeyandSecretForURL(url string) (string, string) + func (auth *DummyAuthenticate) Start() + type PresetAuthenticate struct + CSSCredentials CSSCredentials + Credentials map[string]CredentialInfo + func (auth *PresetAuthenticate) Authenticate(request *http.Request) (int, string, string) + func (auth *PresetAuthenticate) KeyandSecretForURL(url string) (string, string) + func (auth *PresetAuthenticate) Start() + type TestAuthenticate struct + func (auth *TestAuthenticate) Authenticate(request *http.Request) (int, string, string) + func (auth *TestAuthenticate) KeyandSecretForURL(url string) (string, string) + func (auth *TestAuthenticate) Start()