Versions in this module Expand all Collapse all v1 v1.6.1 Jul 9, 2019 Changes in this version + func FromMetadata(ctx context.Context) (c claim.Claims, o bool) + func SubjectsForResourcePolicyQuery(ctx context.Context, q *rest.ResourcePolicyQuery) (subjects []string, err error) + func ToMetadata(ctx context.Context, claims claim.Claims) context.Context + func WithImpersonate(ctx context.Context, user *idm.User) context.Context + type BasicAuthenticator struct + Realm string + TTL time.Duration + func NewBasicAuthenticator(realm string, ttl time.Duration) *BasicAuthenticator + func (b *BasicAuthenticator) Wrap(handler http.Handler) http.HandlerFunc + type JWTVerifier struct + IssuerUrl string + func DefaultJWTVerifier() *JWTVerifier + func (j *JWTVerifier) PasswordCredentialsToken(ctx context.Context, userName string, password string) (context.Context, claim.Claims, error) + func (j *JWTVerifier) Verify(ctx context.Context, rawIDToken string) (context.Context, claim.Claims, error) + type MappingRule struct + LeftAttribute string + RightAttribute string + RolePrefix string + RuleName string + RuleString string + func (m MappingRule) AddPrefix(prefix string, strs []string) []string + func (m MappingRule) ConvertDNtoName(strs []string) []string + func (m MappingRule) FilterList(list []string, strs []string) []string + func (m MappingRule) FilterPreg(preg string, strs []string) []string + func (m MappingRule) IsDnFormat(str string) bool + func (m MappingRule) RemoveLdapEscape(strs []string) []string + func (m MappingRule) SanitizeValues(strs []string) []string + type PydioPW struct + HASH_ALGORITHM_INDEX int + HASH_ITERATION_INDEX int + HASH_PBKDF2_INDEX int + HASH_SALT_INDEX int + HASH_SECTIONS int + PBKDF2_HASH_ALGORITHM string + PBKDF2_HASH_BYTE_SIZE int + PBKDF2_ITERATIONS int + PBKDF2_SALT_BYTE_SIZE int + func (p PydioPW) CheckDBKDF2PydioPwd(password string, hashedPw string, legacySalt ...bool) (bool, error) + func (p PydioPW) CreateHash(password string) (base64Pw string) Incompatible versions in this module v2.0.6+incompatible Apr 23, 2020