Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacheable ¶ added in v3.14.0
type Cacheable interface {
Cacheable() bool
}
Cacheable is implemented by a Manager or a CredentialStrategy whose outcome depends on the credential alone, so it may be cached. Without it nothing is cached: a public link, for example, follows the current share permissions.
type CredentialStrategy ¶
type CredentialStrategy interface {
GetCredentials(w http.ResponseWriter, r *http.Request) (*Credentials, error)
AddWWWAuthenticate(w http.ResponseWriter, r *http.Request, realm string)
}
CredentialStrategy obtains Credentials from the request.
type Credentials ¶
Credentials contains the auth type, client id and secret.
type Manager ¶
type Manager interface {
Authenticate(ctx context.Context, clientID, clientSecret string) (*user.User, map[string]*authpb.Scope, error)
}
Manager is the interface to implement to authenticate users.
type Registry ¶
type Registry interface {
ListProviders(ctx context.Context) ([]*registry.ProviderInfo, error)
GetProvider(ctx context.Context, authType string) (*registry.ProviderInfo, error)
}
Registry is the interface that auth registries implement for discovering auth providers.
type SignedURLStrategy ¶ added in v3.4.0
type TokenStrategy ¶
TokenStrategy obtains a token from the request. If token does not exist returns an empty string.
type TokenWriter ¶
type TokenWriter interface {
WriteToken(token string, w http.ResponseWriter)
}
TokenWriter stores the token in a http response.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cache memoizes the outcome of verifying a credential.
|
Package cache memoizes the outcome of verifying a credential. |
|
manager
|
|
|
kerberos
Package kerberos authenticates a user from a Kerberos ticket, so that a client holding a TGT can reach reva directly without an intermediate identity provider.
|
Package kerberos authenticates a user from a Kerberos ticket, so that a client holding a TGT can reach reva directly without an intermediate identity provider. |
|
ocmexchangedtoken
Package ocmexchangedtoken validates exchanged JWTs for OCM DAV access.
|
Package ocmexchangedtoken validates exchanged JWTs for OCM DAV access. |
|
ocmsharecode
Package ocmsharecode validates OCM exchange codes for the /ocm/token endpoint.
|
Package ocmsharecode validates OCM exchange codes for the /ocm/token endpoint. |
|
oidc
Package oidc verifies an OIDC token against the configured OIDC provider and obtains the necessary claims to obtain user information.
|
Package oidc verifies an OIDC token against the configured OIDC provider and obtains the necessary claims to obtain user information. |