ba6956db0f
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
13 lines
347 B
Go
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
|
|
}
|