use cluster endpoint API to detect erasure coded setup (#1057)

This commit is contained in:
Harshavardhana
2021-09-17 23:11:28 -07:00
committed by GitHub
parent 4cc57fe440
commit 00752d2bb1
4 changed files with 34 additions and 41 deletions

View File

@@ -58,7 +58,6 @@ func configureFlags(api *operations.ConsoleAPI) {
}
func configureAPI(api *operations.ConsoleAPI) http.Handler {
// Applies when the "x-token" header is set
api.KeyAuth = func(token string, scopes []string) (*models.Principal, error) {
// we are validating the session token by decrypting the claims inside, if the operation succeed that means the jwt