Documentation ¶
Index ¶
Constants ¶
View Source
const (
RequestHeaderSessionKey string = "X-OASIS-SESSION-KEY"
)
Variables ¶
This section is empty.
Functions ¶
func MustGetAAD ¶
Types ¶
type Auth ¶
type Auth interface { Name() string Stats() stats.Metrics // Authenticate the user from the http request. This should return: // - the expected AAD // - the authentication error Authenticate(req *http.Request) (*http.Request, error) // Verify that a specific payload complies with // the expected format and has the authentication data required Verify(ctx context.Context, req AuthRequest) error // Sets the logger for the authentication plugin. SetLogger(log.Logger) }
type AuthRequest ¶
type HttpMiddlewareAuth ¶
type HttpMiddlewareAuth struct {
// contains filtered or unexported fields
}
func NewHttpMiddlewareAuth ¶
func NewHttpMiddlewareAuth(auth Auth, logger log.Logger, next rpc.HttpMiddleware) *HttpMiddlewareAuth
type MultiAuth ¶
type MultiAuth struct {
// contains filtered or unexported fields
}
func (*MultiAuth) Authenticate ¶
type MultiError ¶
type MultiError struct {
Errors []error
}
func (MultiError) Error ¶
func (e MultiError) Error() string
Click to show internal directories.
Click to hide internal directories.