mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
backport of commit 9b1120b083 (#23915)
Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
957a2b7e65
commit
b8b54a0249
3
changelog/23894.txt
Normal file
3
changelog/23894.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
core: Skip unnecessary deriving of policies during Login MFA Check.
|
||||||
|
```
|
||||||
@@ -1673,7 +1673,7 @@ func (c *Core) handleLoginRequest(ctx context.Context, req *logical.Request) (re
|
|||||||
source := c.router.MatchingMount(ctx, req.Path)
|
source := c.router.MatchingMount(ctx, req.Path)
|
||||||
|
|
||||||
// Login MFA
|
// Login MFA
|
||||||
entity, _, err := c.fetchEntityAndDerivedPolicies(ctx, ns, auth.EntityID, false)
|
entity, _, err := c.fetchEntityAndDerivedPolicies(ctx, ns, auth.EntityID, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, ErrInternalError
|
return nil, nil, ErrInternalError
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user