deprecating Legacy MFA (#14869)

* deprecating Legacy MFA

* removing legacy MFA doc json entry

* CL

* changing the link to legacy MFA in CL

* removing legacy MFA stuff from credentials' cli
This commit is contained in:
Hamid Ghaf
2022-04-19 21:19:34 -04:00
committed by GitHub
parent fe4b8dfd97
commit 59d9bfa5c0
19 changed files with 14 additions and 994 deletions

View File

@@ -5,7 +5,6 @@ import (
"github.com/google/go-github/github"
cleanhttp "github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/vault/helper/mfa"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"golang.org/x/oauth2"
@@ -40,15 +39,12 @@ func Backend() *backend {
Help: backendHelp,
PathsSpecial: &logical.Paths{
Root: mfa.MFARootPaths(),
Unauthenticated: []string{
"login",
},
},
Paths: append([]*framework.Path{
pathConfig(&b),
}, append(allPaths, mfa.MFAPaths(b.Backend, pathLogin(&b))...)...),
Paths: append([]*framework.Path{pathConfig(&b), pathLogin(&b)}, allPaths...),
AuthRenew: b.pathLoginRenew,
BackendType: logical.TypeCredential,
}