storj/private/api/authentication.go
Vitalii Shpital ba6956db0f console/server, apigen: feature flag for new generated console api
Added a feture flag which will be used to indicate if new generated console api is used.
Fixed some comments from previous PR.

Change-Id: Ice31c998b0b347028a491c971a648fd1269bfd49
2022-02-28 23:00:12 +00:00

13 lines
347 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package api
import "net/http"
// Auth exposes methods to control authentication process for each endpoint.
type Auth interface {
// IsAuthenticated checks if request is performed with all needed authorization credentials.
IsAuthenticated(r *http.Request) error
}